当我尝试安装可视化文件时会显示错误

时间:2020-10-11 00:12:15

标签: python-3.x

当我尝试使用此命令“ pip install visualisation”安装可视化文件时 它首先显示 Collecting visualization Using cached visualization-0.1.4-py3-none-any.whl (13 kB) Collecting autolab-core Using cached autolab_core-0.0.14-py3-none-any.whl (73 kB) Collecting autolab-perception Using cached autolab_perception-0.0.8-py3-none-any.whl (82 kB) Collecting matplotlib<=2.2.0 Using cached matplotlib-2.2.0.tar.gz (37.2 MB)

然后显示错误代码统计

ERROR: Command errored out with exit status 1:
 command: 'c:\users\yae\appdata\local\programs\python\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Yae\\AppData\\Local\\Temp\\pip-install-2am8_wlg\\matplotlib\\setup.py'"'"'; __file__='"'"'C:\\Users\\Yae\\AppData\\Local\\Temp\\pip-install-2am8_wlg\\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 'C:\Users\Yae\AppData\Local\Temp\pip-pip-egg-info-9dwql3v3'
     cwd: C:\Users\Yae\AppData\Local\Temp\pip-install-2am8_wlg\matplotlib\
Complete output (61 lines):
============================================================================
Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
            matplotlib: yes [2.2.0]
                python: yes [3.8.6 (tags/v3.8.6:db45529, Sep 23 2020,
                        15:52:53) [MSC v.1927 64 bit (AMD64)]]
              platform: yes [win32]

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 freetype
                        (freetype2\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 '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: 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
                        * Please check http://gnuwin32.sourceforge.net/packa
                        * ges/freetype.htm for instructions to install
                        * freetype
                        * Please check http://gnuwin32.sourceforge.net/packa
                        * ges/libpng.htm for instructions to install png
----------------------------------------

错误:命令错误,退出状态为1:python setup.py egg_info检查日志以获取完整的命令输出。

我有Windows 10和python 3.8.6版本

0 个答案:

没有答案