[英]Unable to install matplotlib
Problem: Unable to install matplotlib v 2.02 in Python 3.3 on Windows 10 environment 问题:无法在Windows 10环境中的Python 3.3中安装matplotlib v 2.02
C:\Python33>pip install matplotlib
The pip installer completes most of the task and then gives me this error pip安装程序完成了大部分任务,然后给了我这个错误
Command "python setup.py egg_info" failed with error code 1 in c:\users\xxx\appdata\local\temp\pip-build-3ob70y\matplotlib\
C:\Python33>pip install --upgrade setuptools
Requirement already up-to-date: setuptools in c:\python33\lib\site-packages
I have tried the following 我尝试了以下
manually installing maplotlib. 手动安装maplotlib。 this seemed to work but it then found two missing files (__ and cycler) .
这似乎可行,但是随后发现了两个丢失的文件(__和cycler)。 I installed those separately with pips but then it complained about six.moves being missing
我用点子分别安装了这些,但是随后抱怨缺少六个动作。
consulting Can't install via pip because of egg_info error 咨询由于egg_info错误,无法通过pip安装
consulting several other articles on web. 在网上咨询其他几篇文章。 Some suggested a conflict between the requirements of python 2 and pythono 3. However it seems the packages are supposed to work with both
一些人认为python 2和pythono 3的需求之间存在冲突。但是似乎这些软件包应该可以同时使用
Here is the detailed pip error message 这是详细的点子错误消息
Successfully uninstalled matplotlib-2.1.0rc1
C:\Python33>pip install matplotlib
Collecting matplotlib
Using cached matplotlib-2.0.2.tar.gz
Complete output from command python setup.py egg_info:
======================================================================
Edit setup.cfg to change the build options>
BUILDING MATPLOTLIB
matplotlib: yes [2.0.2]
python: no [Requires Python 3.4 or later (in the 3.x
series)]
platform: yes [win32]>
REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [version 1.7.1]
six: yes [The installed version of six is 1.3.0 but a > the minimum required version is 1.10. pip/easy >
install will attempt to install a newer version.]
dateutil: yes [using dateutil version 2.1]
functools32: yes [Not required]
subprocess32: yes [Not required]
pytz: yes [pytz was not found. pip will attempt to
install it after matplotlib.]
cycler: yes [using cycler version 0.10.0]
tornado: yes [using tornado version 4.4.2]
pyparsing: yes [using pyparsing version 2.2.0]
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: no [skipping due to configuration]
toolkits_tests: no [skipping due to configuration]
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: yes [version 1.15]
ghostscript: yes [version 9.19]
latex: yes [version MiKTeX 2.9]
pdftops: yes [version 0.46.0]
OPTIONAL PACKAGE DATA
dlls: no [skipping due to configuration]
================================================================
* The following required packages can not be
built:
* python, freetype, png
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in
c:\users\xxx\appdata\local\temp\pip-build-3ob70y\matplotlib\
As the official version of Matplotlib in Python package index https://pypi.python.org/pypi/matplotlib/ , it supports only the following Python versions: 作为Python软件包索引https://pypi.python.org/pypi/matplotlib/中的Matplotlib的正式版本,它仅支持以下Python版本:
So, you can not install matplotlib 2.1.0rc1
(which is the version you get using pip install matplotlib
) in Python 3.3. 因此,您无法在Python 3.3中安装
matplotlib 2.1.0rc1
(这是使用pip install matplotlib
获得的版本)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.