简体   繁体   English

pip 安装 matplotlib 时出现退出状态 1 的安装命令错误

[英]pip install command error out with exit status 1 when installing matplotlib

I am trying to install matplotlib with pip command on windows 10 but it is giving me an error and exiting with status 1. I have looked for hours to solve this error but couldn't remove the error.我正在尝试在 windows 10 上使用 pip 命令安装 matplotlib,但它给了我一个错误并以状态 1 退出此错误。我已经寻找了几个小时来解决错误但无法删除。 Here is the error.这是错误。 错误图片 1 Then it creates and copy a lot of files in red font.然后它会创建并复制大量红色字体的文件。

I'm also getting exit status 2 at the end.最后我也得到了退出状态 2。 错误图像 2

You are missing freetype which is a required external dependency to build python from source which you need to do because we have not posted py38 wheels for Matplotlib (we are working on it).您缺少freetype ,这是从源代码构建 python 所需的外部依赖项,您需要这样做,因为我们尚未发布 Matplotlib 的 py38 轮子(我们正在努力)。

For now follow the instructions at https://matplotlib.org/devel/contributing.html#retrieving-and-installing-the-latest-version-of-the-code to set the MPLLOCALFREETYPE=1 enviroment variable to have Matplotlib build a local copy of freetype for you.现在按照https://matplotlib.org/devel/contributing.html#retrieving-and-installing-the-latest-version-of-the-code中的说明设置MPLLOCALFREETYPE=1环境变量以使 Matplotlib 构建freetype 的本地副本。 This will be the default behavior in future releases.这将是未来版本中的默认行为。

I didn't got the proper answer to why it is giving an error or how to solve it but I solved my issue by switching python 3.8.0 to 3.7.5 as suggested by @crissal in the comment section.我没有得到正确答案为什么它会给出错误或如何解决它,但我通过在评论部分中@crissal 的建议将 python 3.8.0 切换到 3.7.5 解决了我的问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Pip 安装错误与 pycontractions '错误:命令错误退出状态 1:' - Pip install error with pycontractions 'ERROR: Command errored out with exit status 1:' 安装 matplotlib 错误:命令出错,退出状态为 -4 - installing matplotlib ERROR: Command errored out with exit status -4 pip 安装 jupyterlab 错误:命令出错,退出状态为 1: - pip install jupyterlab ERROR: Command errored out with exit status 1: Pip 安装 magpie 错误:Command Errored out with exit status 1 - Pip Install magpie error: Command Errored out with exit status 1 pip install darknetpy 不起作用,“错误:命令出错,退出状态为 1” - pip install darknetpy not working, “ERROR: Command errored out with exit status 1” pip 安装生成错误:命令错误退出状态为 1 - pip install generates ERROR: Command errored out with exit status 1 Windows 10:Pip 安装错误:命令出错,退出状态为 1 - Windows 10: Pip install error: Command errored out with exit status 1 pip install 命令出错,退出状态为 1 - pip install Command errored out with exit status 1 尝试使用 pip 安装看门狗时如何修复“错误:命令错误,退出状态为 1:” - How to fix ‘“ERROR: Command errored out with exit status 1:” when trying to install watchdog using pip 错误:退出状态为 1 的命令出错:尝试在 window 中“安装量子格罗夫”时 - ERROR: Command errored out with exit status 1: When trying to 'pip install quantum-grove' in window
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM