Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with the requirements installation #48

Open
InsalataCondita opened this issue Apr 17, 2020 · 1 comment
Open

Problems with the requirements installation #48

InsalataCondita opened this issue Apr 17, 2020 · 1 comment

Comments

@InsalataCondita
Copy link

I've tried to install the requirements but this appened:
Downloading matplotlib-2.2.3.tar.gz (36.8 MB)
|████████████████████████████████| 36.8 MB 4.9 MB/s
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7jm6q6pd/matplotlib/setup.py'"'"'; file='"'"'/tmp/pip-install-7jm6q6pd/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-7jm6q6pd/matplotlib/pip-egg-info
cwd: /tmp/pip-install-7jm6q6pd/matplotlib/
Complete output (62 lines):
============================================================================
Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
            matplotlib: yes [2.2.3]
                python: yes [3.8.2 (default, Mar 13 2020, 10:14:16)  [GCC
                        9.3.0]]
              platform: yes [linux]

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 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
                macosx: no  [Mac OS-X only]
                qt5agg: no  [PySide2 not found; PyQt5 not found]
                qt4agg: no  [PySide not found; PyQt4 not found]
               gtk3agg: yes [installing, version 3.17.24]
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-7jm6q6pd/matplotlib/setup.py", line 198, in <module>
    msg = pkg.install_help_msg()
  File "/tmp/pip-install-7jm6q6pd/matplotlib/setupext.py", line 592, in install_help_msg
    release = platform.linux_distribution()[0].lower()
AttributeError: module 'platform' has no attribute 'linux_distribution'
             gtk3cairo: yes [installing, version 3.17.24]
                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: yes [installing, pycairo version 1.16.2]
             windowing: no  [Microsoft Windows only]

OPTIONAL LATEX DEPENDENCIES
                dvipng: no
           ghostscript: yes [version 9.50]
                 latex: no
               pdftops: yes [version 0.86.1]

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

============================================================================
                        * The following required packages can not be built:
                        * freetype, png
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Can someone help me please?

@wuffeljunior90
Copy link

I had the same problem today.
Just install the packages one by one.
pip install

Regards :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants