麻烦在Python 3.4上安装Matplotlib

时间:2016-09-04 07:30:42

标签: python windows matplotlib pip

我尝试按照此视频安装matplotlib。

https://www.youtube.com/watch?v=-llHYUMH9Dg

我完全遵循了一切。它一直工作,直到我尝试

C:\Python34\Scripts>pip install matplotlib

然后我收到了此错误消息

  

命令“python setup.py egg_info”失败,错误代码1在C:\ Users \ KIEFER~1 \ AppData \ Local \ Temp \ pip-build-kai2npum \ matplotlib

我不知道该怎么做。我刚刚完成了Codeacademy,我想继续学习matplotlib。

我非常感谢任何人都能给予的帮助,即使有人能指出我正确的方向。我不是要求用汤匙喂食。

这是完整的错误消息。

C:\ Python34 \脚本> CMD Microsoft Windows [版本10.0.10586] (c)2015 Microsoft Corporation。保留所有权利。

C:\ Python34 \ Scripts> pip install matplotlib 收集matplotlib   使用缓存的matplotlib-1.5.2.tar.gz     从命令python setup.py egg_info完成输出:     ================================================== ==========================     编辑setup.cfg以更改构建选项

BUILDING MATPLOTLIB
            matplotlib: yes [1.5.2]
                python: yes [3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015,
                        19:28:18) [MSC v.1600 32 bit (Intel)]]
              platform: yes [win32]

REQUIRED DEPENDENCIES AND EXTENSIONS
                 numpy: yes [version 1.11.1]
              dateutil: yes [dateutil was not found. It is required for date
                        axis support. pip/easy_install may attempt to
                        install it after matplotlib.]
                  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

----------------------------------------

命令“python setup.py egg_info”失败,错误代码1在C:\ Users \ KIEFER~1 \ AppData \ Local \ Temp \ pip-build-nhz_3wzz \ matplotlib 您正在使用pip版本7.1.2,但版本8.1.2可用。 您应该考虑通过'python -m pip install --upgrade pip'命令进行升级。

C:\ Python34 \脚本>

0 个答案:

没有答案