-
Notifications
You must be signed in to change notification settings - Fork 5
Description
I got error as :
Collecting matplotlib==3.0.0
Using cached matplotlib-3.0.0.tar.gz (36.3 MB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9bkr80gj/matplotlib/setup.py'"'"'; file='"'"'/tmp/pip-install-9bkr80gj/matplotlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-9bkr80gj/matplotlib/pip-egg-info
cwd: /tmp/pip-install-9bkr80gj/matplotlib/
Complete output (48 lines):
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-9bkr80gj/matplotlib/setup.py", line 170, in
msg = pkg.install_help_msg()
File "/tmp/pip-install-9bkr80gj/matplotlib/setupext.py", line 539, in install_help_msg
release = platform.linux_distribution()[0].lower()
AttributeError: module 'platform' has no attribute 'linux_distribution'
============================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
matplotlib: yes [3.0.0]
python: yes [3.8.10 (default, Nov 14 2022, 12:59:47) [GCC
9.4.0]]
platform: yes [linux]
REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [version 1.19.5]
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.]