操作系统是Windows 10 64位。我尝试执行以下操作:
pip install matplotlib.
没用。然后,我尝试用https://matplotlib.org/users/installing.html#build-requirements中写的内容:
python -mpip install -U pip
python -mpip install -U matplotlib
然后我在某处读到setuptools升级可以解决该问题。我尝试过:
pip install --upgrade setuptools
easy_install -U setuptools
响应始终是相同的:
Command "python setup.py egg_info" failed with error code 1 in C:\Users\User\AppData\Local\Temp\pip-install-pqlhz7ux\matplotlib\
你能帮我吗? Python版本是3.7.0
BUILDING MATPLOTLIB
matplotlib: yes[2.2.2]
python: yes
[3.7.0 (v3.7.0:1bf9cc5093, Jun 2
7 2018, 04:06:47) [MSC v.1914 32 bit (Intel)]]
platform: yes [win32]
REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes
[not found. pip may install it below.]
install_requires: yes
[handled by setuptools]
libagg: yes
[pkg-config information for 'libagg' could not be found. Using local copy.]
freetype: no
[The C/C++ header for freetype
(freetype2\ft2build.h) could not be
found. You may need to install the development pack age.]
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 'libqhull' could not be found. Using local copy.]