Python matplotlib installieren-Problem auf Windows 7 für freetype -, png-Pakete
Mit Python 2.7 unter Windows 7. Hier ist der Befehl, den ich benutze, zu installieren und Fehlermeldung. Frage mich, ob jemand kennengelernt habe, mit ähnlichen Problemen vor? Danke.
C:\Python27\Scripts>pip install matplotlib
Collecting matplotlib
Downloading matplotlib-1.5.2.tar.gz (51.6MB)
100% |################################| 51.6MB 19kB/s
Complete output from command python setup.py egg_info:
============================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
matplotlib: yes [1.5.2]
python: yes [2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015,
20:40:30) [MSC v.1500 64 bit (AMD64)]]
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 / mock is
required to run the matplotlib test suite. Please
install it with pip or your preferred tool to run
the test suite]
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 / mock is
required to run the matplotlib test suite. Please
install it with pip or your preferred tool to run
the test suite]
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\foo\a
ppdata\local\temp\pip-build-zxfsow\matplotlib\
Du musst angemeldet sein, um einen Kommentar abzugeben.
http://www.lfd.uci.edu/~gohlke/pythonlibs/
Bekommen matplotlib vom oben angegebenen Speicherort. Wähle das richtige Paket basiert auf python(2.x/3.x) und bit(32/64) version.
Wenn Sie irgendwelche Probleme in der Mitte, entnehmen Sie bitte folgenden link:
https://stackoverflow.com/a/38618044/5334188
Ich löste es durch die Einnahme von version 1.5.1
es scheint, dass die version 1.5.2 installer defekt ist.
Wie Sie sehen können, es
png
undfreetype
Module fehlen. Zu installieren, müssen Sie Sie separat.Versuchen dabei die folgenden :
libpng-devel
undlibfreetype-devel
Pakete für diematplotlib
installer erfolgreich zu sein - es ist nicht ein problem mit dem Namen des Pakets (es dauerte eine gute Stunde, um dies herauszufinden).Ich hatte das exakt gleiche Problem.
Scheint, dass mein pip war v7 die alte ist.
Upgrade auf v9 mit dem 'aktualisieren' - button.
dann versucht zu installieren matplotlib wieder und war dieses mal erfolgreich.
vielleicht hilft
Stieß ich auf das gleiche problem mit Ihnen, und hier ist meine Lösung
Er hat das problem mit python 3.6 integriert mit der neuesten pip.
also installierte ich die python 3.5.2 mit pip, aber nicht upgrade pip.
Und Sie können matplotlib installiert auf diese Weise.
Hoffe, ich könnte eine mögliche Lösung
Löste ich das gleiche problem in WIndows 10, wie folgende:
1 - Laden Sie die folgenden Dateien für win32-oder win64-Python ist3.7:
oder
aus der https://www.lfd.uci.edu/~gohlke/pythonlibs/
2 - Durch die cmd-Konsole führen Sie die heruntergeladene Datei unter python:
können Sie versuchen, die matplolib