Мне известно, что этот вопрос задавался пару раз, но ни одно из предложенных решений не помогло мне.Я хочу установить пакет matplotlib с pip install matplotlib==1.5.1
(эта версия была рекомендована https://stackoverflow.com/a/38126910/3554329). Однако я получаю следующее сообщение:
Complete output from command python setup.py egg_info:
============================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
matplotlib: yes [1.5.1]
python: yes [2.7.5 (default, Jul 13 2018, 13:06:57) [GCC
4.8.5 20150623 (Red Hat 4.8.5-28)]]
platform: yes [linux2]
REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [version 1.15.1]
dateutil: yes [using dateutil version 2.7.3]
pytz: yes [using pytz version 2016.10]
cycler: yes [using cycler version 0.10.0]
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 [Your pyparsing contains a bug that will be
monkey-patched by matplotlib. For best results,
upgrade to pyparsing 2.0.1 or later.]
libagg: yes [pkg-config information for 'libagg' could not
be found. Using local copy.]
freetype: yes [version 2.4.11]
png: no [pkg-config information for 'libpng' could not
be found.]
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 [using nose version 1.3.7 / 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 [using nose version 1.3.7 / 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: yes [installing, Qt: 4.8.5, PyQt: 4.8.5; PySide not
found]
** (-c:230059): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-7WVKLv55ER: Connection refused
gtk3agg: yes [installing, version 3.26.22]
** (-c:230064): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-7WVKLv55ER: Connection refused
gtk3cairo: yes [installing, version 3.26.22]
gtkagg: no [The C/C++ header for gtk (gtk/gtk.h) could not
be found. You may need to install the development
package.]
tkagg: no [TKAgg requires Tkinter.]
wxagg: no [requires wxPython]
gtk: no [The C/C++ header for gtk (gtk/gtk.h) could not
be found. You may need to install the development
package.]
agg: yes [installing]
cairo: yes [installing, pycairo version 1.8.10]
windowing: no [Microsoft Windows only]
OPTIONAL LATEX DEPENDENCIES
dvipng: yes [version 1.14]
ghostscript: yes [version 9.07]
latex: no
pdftops: no
OPTIONAL PACKAGE DATA
dlls: no [skipping due to configuration]
============================================================================
* The following required packages can not be built:
* png
----------------------------------------
Со следующей ошибкой:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-fm442m/matplotlib/
Как и я, я обновил мои setuptools:
[root@------- ~]# pip install --upgrade setuptools
Requirement already up-to-date: setuptools in /usr/lib/python2.7/site-packages (40.4.3)
Я также пытался использовать easy_install
, но он тоже не работал. У кого-нибудь есть идея, как решить эту проблему?