[英]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.
这是错误。
Then it creates and copy a lot of files in red font.
然后它会创建并复制大量红色字体的文件。
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.