首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Matplotlib即使所有必需的包都已安装,也不会安装

Matplotlib即使所有必需的包都已安装,也不会安装
EN

Stack Overflow用户
提问于 2020-03-11 03:02:29
回答 1查看 540关注 0票数 5

我是一个Mac用户,试图安装这个特定版本的matplotlib,并且一直收到这个错误。我已经确定我有所需的包,但我不知道如何确保他们在正确的位置。目前,我无法使情节适用于我正在处理的各种代码。以下错误:

代码语言:javascript
复制
pip3 install matplotlib==3.0.3
Collecting matplotlib==3.0.3
Using cached matplotlib-3.0.3.tar.gz (36.6 MB)
ERROR: Command errored out with exit status 1:
 command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/g5/20g6q1l91sd1v97fz778n5wr0000gp/T/pip-install-yozx599p/matplotlib/setup.py'"'"'; __file__='"'"'/private/var/folders/g5/20g6q1l91sd1v97fz778n5wr0000gp/T/pip-install-yozx599p/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 /private/var/folders/g5/20g6q1l91sd1v97fz778n5wr0000gp/T/pip-install-yozx599p/matplotlib/pip-egg-info
     cwd: /private/var/folders/g5/20g6q1l91sd1v97fz778n5wr0000gp/T/pip-install-yozx599p/matplotlib/
Complete output (44 lines):
IMPORTANT WARNING:
    pkg-config is not installed.
    matplotlib may not be able to find some of its dependencies
============================================================================
Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
            matplotlib: yes [3.0.3]
                python: yes [3.8.0 (v3.8.0:fa919fdf25, Oct 14 2019,
                        10:23:27)  [Clang 6.0 (clang-600.0.57)]]
              platform: yes [darwin]

REQUIRED DEPENDENCIES AND EXTENSIONS
                 numpy: yes [version 1.16.2]
      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: yes [pkg-config information for 'libpng' could not
                        be found. Using unknown version found on system.]
                 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: yes [installing, darwin]
             windowing: no  [Microsoft Windows only]

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

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

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

“”“

EN

回答 1

Stack Overflow用户

发布于 2020-03-11 03:08:06

由于日志状态,您可能需要安装模块自由类型,这样才能正常工作。一定要试一试,看看错误是否返回。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60628662

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档