Ошибка установки matplotlib==3.0.0 по базе pip3 на python3.6.9 Ubuntu 18.04Python

Программы на Python
Ответить
Anonymous
 Ошибка установки matplotlib==3.0.0 по базе pip3 на python3.6.9 Ubuntu 18.04

Сообщение Anonymous »

В моей системе есть 2 версии Python
одна — 2.7.17, другая — 3.6.9 и нет pip2,
Я просто устанавливаю pip3 и использую pip3 для установки matplotlib==3.0.0
и получаю код ошибки.

Код: Выделить всё

Collecting matplotlib==3.0.0 (from -r requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/ec/06/def4fb2620cbe671ba0cb6462cbd8653fbffa4acd87d6d572659e7c71c13/matplotlib-3.0.0.tar.gz (36.3MB)
100% |████████████████████████████████| 36.3MB 13kB/s
Complete output from command python setup.py egg_info:
============================================================================
Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
matplotlib: yes [3.0.0]
python: yes [3.6.9 (default, Mar 10 2023, 16:46:00)  [GCC
8.4.0]]
platform: yes [linux]

REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [version 1.13.3]
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 freetype2 (ft2build.h)
could not be found.  You may need to install the
development package.]
png: no  [pkg-config information for 'libpng' could not
be found.]
qhull: yes [pkg-config information for 'libqhull' 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
agg: yes [installing]
tkagg: yes [installing; run-time loading from Python Tcl /
Tk]
macosx: no  [Mac OS-X only]
windowing: no  [Microsoft Windows only]

OPTIONAL PACKAGE DATA
dlls: no  [skipping due to configuration]

============================================================================
* The following required packages can not be built:
* freetype, png
* Try installing freetype with `apt-get install
* libfreetype6-dev` and pkg-config with `apt-get
* install pkg-config`
* Try installing png with `apt-get install
* libpng12-dev` and pkg-config with `apt-get install
* pkg-config`

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-vdamltw3/matplotlib/

Я пытаюсь решить эту проблему
вот так

Код: Выделить всё

sudo apt-get install python3.6-dev libmysqlclient-dev
и это

Код: Выделить всё

pip install --upgrade setuptools
но код ошибки по-прежнему тот же
Что мне следует знать?

Подробнее здесь: https://stackoverflow.com/questions/775 ... untu-18-04
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Python»