2016-12-28 5 views
4

최근에 새 랩톱이 있고 모든 Python 라이브러리를 설치하려고합니다. 그러나 일부는 matplotlib처럼 설치하지 않습니다.Python 3.6 pip 설치 matplotlib 및 기타 라이브러리가 Windows 10에서 실행되지 않았습니다.

내 컴퓨터 정보 : Windows 10, Python 3.6 및 pip에 따라,이 라이브러리. "하기 matplotlib를 설치 PIP"의

colorama (0.3.7) 
Django (1.8.17) 
Mathics (1.0) 
mpmath (0.19) 
pip (9.0.1) 
python-dateutil (2.6.0) 
setuptools (32.3.0) 
six (1.10.0) 
sympy (1.0) 
wheel (0.29.0) 

결과 :

Error processing line 1 of c:\users\marvi\appdata\local\programs\python\python36\lib\site-packages\matplotlib-2.0.0rc2-py3.6-nspkg.pth: 

    Traceback (most recent call last): 
    File "c:\users\marvi\appdata\local\programs\python\python36\lib\site.py", line 169, in addpackage 
     exec(line) 
    File "", line 1, in 
    File "", line 557, in module_from_spec 
    AttributeError: 'NoneType' object has no attribute 'loader' 

Remainder of file ignored 
Collecting matplotlib 
    Using cached matplotlib-1.5.3.tar.gz 
    Complete output from command python setup.py egg_info: 
    Error processing line 1 of c:\users\marvi\appdata\local\programs\python\python36\lib\site-packages\matplotlib-2.0.0rc2-py3.6-nspkg.pth: 

     Traceback (most recent call last): 
     File "c:\users\marvi\appdata\local\programs\python\python36\lib\site.py", line 169, in addpackage 
      exec(line) 
     File "", line 1, in 
     File "", line 557, in module_from_spec 
     AttributeError: 'NoneType' object has no attribute 'loader' 

    Remainder of file ignored 
    Error processing line 1 of c:\users\marvi\appdata\local\programs\python\python36\lib\site-packages\matplotlib-2.0.0rc2-py3.6-nspkg.pth: 

     Traceback (most recent call last): 
     File "c:\users\marvi\appdata\local\programs\python\python36\lib\site.py", line 169, in addpackage 
      exec(line) 
     File "", line 1, in 
     File "", line 557, in module_from_spec 
     AttributeError: 'NoneType' object has no attribute 'loader' 

    Remainder of file ignored 
    Error processing line 1 of c:\users\marvi\appdata\local\programs\python\python36\lib\site-packages\matplotlib-2.0.0rc2-py3.6-nspkg.pth: 

     Traceback (most recent call last): 
     File "c:\users\marvi\appdata\local\programs\python\python36\lib\site.py", line 169, in addpackage 
      exec(line) 
     File "", line 1, in 
     File "", line 557, in module_from_spec 
     AttributeError: 'NoneType' object has no attribute 'loader' 

    Remainder of file ignored 
    Error processing line 1 of c:\users\marvi\appdata\local\programs\python\python36\lib\site-packages\matplotlib-2.0.0rc2-py3.6-nspkg.pth: 

     Traceback (most recent call last): 
     File "c:\users\marvi\appdata\local\programs\python\python36\lib\site.py", line 169, in addpackage 
      exec(line) 
     File "", line 1, in 
     File "", line 557, in module_from_spec 
     AttributeError: 'NoneType' object has no attribute 'loader' 

    Remainder of file ignored 
    Error processing line 1 of c:\users\marvi\appdata\local\programs\python\python36\lib\site-packages\matplotlib-2.0.0rc2-py3.6-nspkg.pth: 

     Traceback (most recent call last): 
     File "c:\users\marvi\appdata\local\programs\python\python36\lib\site.py", line 169, in addpackage 
      exec(line) 
     File "", line 1, in 
     File "", line 557, in module_from_spec 
     AttributeError: 'NoneType' object has no attribute 'loader' 

    Remainder of file ignored 
    Error processing line 1 of c:\users\marvi\appdata\local\programs\python\python36\lib\site-packages\matplotlib-2.0.0rc2-py3.6-nspkg.pth: 

     Traceback (most recent call last): 
     File "c:\users\marvi\appdata\local\programs\python\python36\lib\site.py", line 169, in addpackage 
      exec(line) 
     File "", line 1, in 
     File "", line 557, in module_from_spec 
     AttributeError: 'NoneType' object has no attribute 'loader' 

    Remainder of file ignored 
    Error processing line 1 of c:\users\marvi\appdata\local\programs\python\python36\lib\site-packages\matplotlib-2.0.0rc2-py3.6-nspkg.pth: 

     Traceback (most recent call last): 
     File "c:\users\marvi\appdata\local\programs\python\python36\lib\site.py", line 169, in addpackage 
      exec(line) 
     File "", line 1, in 
     File "", line 557, in module_from_spec 
     AttributeError: 'NoneType' object has no attribute 'loader' 

    Remainder of file ignored 
    Error processing line 1 of c:\users\marvi\appdata\local\programs\python\python36\lib\site-packages\matplotlib-2.0.0rc2-py3.6-nspkg.pth: 

     Traceback (most recent call last): 
     File "c:\users\marvi\appdata\local\programs\python\python36\lib\site.py", line 169, in addpackage 
      exec(line) 
     File "", line 1, in 
     File "", line 557, in module_from_spec 
     AttributeError: 'NoneType' object has no attribute 'loader' 

    Remainder of file ignored 
    Error processing line 1 of c:\users\marvi\appdata\local\programs\python\python36\lib\site-packages\matplotlib-2.0.0rc2-py3.6-nspkg.pth: 

     Traceback (most recent call last): 
     File "c:\users\marvi\appdata\local\programs\python\python36\lib\site.py", line 169, in addpackage 
      exec(line) 
     File "", line 1, in 
     File "", line 557, in module_from_spec 
     AttributeError: 'NoneType' object has no attribute 'loader' 

    Remainder of file ignored 
Error processing line 1 of c:\users\marvi\appdata\local\programs\python\python36\lib\site-packages\matplotlib-2.0.0rc2-py3.6-nspkg.pth: 

     Traceback (most recent call last): 
     File "c:\users\marvi\appdata\local\programs\python\python36\lib\site.py", line 169, in addpackage 
      exec(line) 
     File "", line 1, in 
     File "", line 557, in module_from_spec 
     AttributeError: 'NoneType' object has no attribute 'loader' 

    Remainder of file ignored 
    Error processing line 1 of c:\users\marvi\appdata\local\programs\python\python36\lib\site-packages\matplotlib-2.0.0rc2-py3.6-nspkg.pth: 

     Traceback (most recent call last): 
     File "c:\users\marvi\appdata\local\programs\python\python36\lib\site.py", line 169, in addpackage 
      exec(line) 
     File "", line 1, in 
     File "", line 557, in module_from_spec 
     AttributeError: 'NoneType' object has no attribute 'loader' 

    Remainder of file ignored 
    Error processing line 1 of c:\users\marvi\appdata\local\programs\python\python36\lib\site-packages\matplotlib-2.0.0rc2-py3.6-nspkg.pth: 

     Traceback (most recent call last): 
     File "c:\users\marvi\appdata\local\programs\python\python36\lib\site.py", line 169, in addpackage 
      exec(line) 
     File "", line 1, in 
     File "", line 557, in module_from_spec 
     AttributeError: 'NoneType' object has no attribute 'loader' 

    Remainder of file ignored 
    Error processing line 1 of c:\users\marvi\appdata\local\programs\python\python36\lib\site-packages\matplotlib-2.0.0rc2-py3.6-nspkg.pth: 

     Traceback (most recent call last): 
     File "c:\users\marvi\appdata\local\programs\python\python36\lib\site.py", line 169, in addpackage 
      exec(line) 
     File "", line 1, in 
     File "", line 557, in module_from_spec 
     AttributeError: 'NoneType' object has no attribute 'loader' 

    Remainder of file ignored 
    Error processing line 1 of c:\users\marvi\appdata\local\programs\python\python36\lib\site-packages\matplotlib-2.0.0rc2-py3.6-nspkg.pth: 

     Traceback (most recent call last): 
     File "c:\users\marvi\appdata\local\programs\python\python36\lib\site.py", line 169, in addpackage 
      exec(line) 
     File "", line 1, in 
     File "", line 557, in module_from_spec 
     AttributeError: 'NoneType' object has no attribute 'loader' 

    Remainder of file ignored 
    Error processing line 1 of c:\users\marvi\appdata\local\programs\python\python36\lib\site-packages\matplotlib-2.0.0rc2-py3.6-nspkg.pth: 

     Traceback (most recent call last): 
     File "c:\users\marvi\appdata\local\programs\python\python36\lib\site.py", line 169, in addpackage 
      exec(line) 
     File "", line 1, in 
     File "", line 557, in module_from_spec 
     AttributeError: 'NoneType' object has no attribute 'loader' 

    Remainder of file ignored 
    Error processing line 1 of c:\users\marvi\appdata\local\programs\python\python36\lib\site-packages\matplotlib-2.0.0rc2-py3.6-nspkg.pth: 

     Traceback (most recent call last): 
     File "c:\users\marvi\appdata\local\programs\python\python36\lib\site.py", line 169, in addpackage 
      exec(line) 
     File "", line 1, in 
     File "", line 557, in module_from_spec 
     AttributeError: 'NoneType' object has no attribute 'loader' 

    Remainder of file ignored 
    Error processing line 1 of c:\users\marvi\appdata\local\programs\python\python36\lib\site-packages\matplotlib-2.0.0rc2-py3.6-nspkg.pth: 

     Traceback (most recent call last): 
     File "c:\users\marvi\appdata\local\programs\python\python36\lib\site.py", line 169, in addpackage 
      exec(line) 
     File "", line 1, in 
     File "", line 557, in module_from_spec 
     AttributeError: 'NoneType' object has no attribute 'loader' 

    Remainder of file ignored 
    ============================================================================ 
    Edit setup.cfg to change the build options 

    BUILDING MATPLOTLIB 
       matplotlib: yes [1.5.3] 
        python: yes [3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 
          08:06:12) [MSC v.1900 64 bit (AMD64)]] 
        platform: yes [win32] 

    REQUIRED DEPENDENCIES AND EXTENSIONS 
        numpy: yes [not found. pip may install it below.] 
        dateutil: yes [using dateutil version 2.6.0] 
         pytz: yes [pytz was not found. pip will attempt to install 
          it after matplotlib.] 
        cycler: yes [cycler was not found. pip will attempt to 
          install it after matplotlib.] 
        tornado: yes [tornado was not found. It is required for the 
          WebAgg backend. pip/easy_install may attempt to 
          install it after matplotlib.] 
       pyparsing: yes [pyparsing was not found. It is required for 
          mathtext support. pip/easy_install may attempt to 
          install it after matplotlib.] 
        libagg: yes [pkg-config information for 'libagg' could not 
          be found. Using local copy.] 
        freetype: no [The C/C++ header for freetype (ft2build.h) 
          could not be found. You may need to install the 
          development package.] 
         png: no [The C/C++ header for png (png.h) could not be 
          found. You may need to install the development 
          package.] 
        qhull: yes [pkg-config information for 'qhull' could not be 
          found. Using local copy.] 

    OPTIONAL SUBPACKAGES 
       sample_data: yes [installing] 
        toolkits: yes [installing] 
        tests: yes [nose 0.11.1 or later is required to run the 
          matplotlib test suite. Please install it with pip or 
          your preferred tool to run the test suite/using 
          unittest.mock] 
      toolkits_tests: yes [nose 0.11.1 or later is required to run the 
          matplotlib test suite. Please install it with pip or 
          your preferred tool to run the test suite/using 
          unittest.mock] 

    OPTIONAL BACKEND EXTENSIONS 
        macosx: no [Mac OS-X only] 
        qt5agg: no [PyQt5 not found] 
        qt4agg: no [PySide not found; PyQt4 not found] 
        gtk3agg: no [Requires pygobject to be installed.] 
       gtk3cairo: no [Requires cairocffi or pycairo to be installed.] 
        gtkagg: no [Requires pygtk] 
        tkagg: yes [installing; run-time loading from Python Tcl/
          Tk] 
        wxagg: no [requires wxPython] 
         gtk: no [Requires pygtk] 
         agg: yes [installing] 
        cairo: no [cairocffi or pycairo not found] 
       windowing: yes [installing] 

    OPTIONAL LATEX DEPENDENCIES 
        dvipng: no 
       ghostscript: no 
        latex: no 
        pdftops: no 

    OPTIONAL PACKAGE DATA 
         dlls: no [skipping due to configuration] 

    ============================================================================ 
          * The following required packages can not be built: 
          * freetype, png 

    ---------------------------------------- 
Command "python setup.py egg_info" failed with error code 1 in C:\Users\marvi\AppData\Local\Temp\pip-build-a0hjoody\matplotlib\

기본적으로 캐시 된 파일하는 site.py에서 AttributeErrors의 무리와 FreeType에서 또는 PNG를 가지고 있지에 대해 뭔가에 대해 뭔가. site.py를 수정하려고했지만 여전히 작동하지 않습니다. PyPi에서 .whl 파일을 시도했는데 작동하지 않습니다. 나는 "pip install matplotlib --no-cache-dir", 똑같은 것을 시도했다. 수동으로 png 및 freetype을 다운로드하려고했지만 찾을 수 없습니다. NumPy, SciPy, pandas와 같은 다른 라이브러리에서도 비슷한 결과가 발생합니다. 이 문제가되지 않습니다

+0

다른 버전의 Python이 설치되어 있습니까? – andrepogg

+0

번. Windows 10에 함께 제공되지 않는 한 – ev3commander

+1

그래서 새로운 Windows 10 OS를 시작하고 Python 3.6을 설치하려고합니다. 패키지없이 제공됩니다. Freetype [here] (https://sourceforge.net/projects/freetype/files/freetype2/2.7/)와 PNG one [여기] (https://sourceforge.net)을 찾을 수 있습니다./projects/libpng/files/libpng16 /). 이게 도움이되기를 바랍니다. – andrepogg

답변

1

당신은 사용할 수 있습니다 :

conda install -c conda-forge python=3.6.0 
conda install matplotlib --channel conda-forge 

하는 아나콘다 방문을 다운로드하려면

나는 내 길에서 파이썬 디렉토리와 cmd.exe "관리자 권한으로 실행"을 사용하여 설치 https://www.continuum.io/downloads

+0

그러나 아나콘다가 없으므로 어떻게 다운로드해야합니까? – ev3commander

+0

https://www.continuum.io – toasteez

+0

감사하지만 컴퓨터에서는 그렇지 않습니다. – ev3commander

2

1.5.1 버전이를 확인할 수 있습니다

pip install matplotlib==1.5.1 
+0

1.5.1은 동일한 출력을 가지고 있습니다 : AttributeErrors의 묶음이며 png 또는 freetype을 찾을 수 없습니다. – ev3commander

0

당신처럼 나는이 하나 이상에서 빙빙 갔다!

PyPI에서 설치하는 경우 문제가 없어야합니다. matplotlib-2.0.0rc2-cp36-cp36m-win32.whl을 사용했지만 64 비트 버전도 있습니다. 파이썬 3.6 아나콘다를 사용하는 경우

pip3 install matplotlib-2.0.0rc2-cp36-cp36m-win32.whl 
+0

더 많은 오류 메시지가 나타납니다. https : //gist.github.com/ev3commander/3f1defb5cb440d7cddd4d2a6c89f2889 – ev3commander

+0

python3.5.4와 함께 내 바탕 화면에 잘 작동하기 때문에 python3.6과 관련된 모든 것을 삭제하고 python3.5.4를 다운로드해야만한다고 느낀다. – ev3commander

+0

나는 다른 방식으로 3.6을 설치했다. 그러나 그것이 차이를 만들 것인지 나는 모른다. 내가 "사용자 정의 설치"를 수행하고 "고급 옵션"에서 "모든 사용자를 위해 설치"를 선택했습니다. 그러면 3.6이 로컬 App 디렉토리 대신 "Program Files (x86)"에 설치됩니다. 로컬 설치시 다른 문제가있었습니다. – cdarke