首页 > 解决方案 > 安装 matplotlib 时出现错误。我该怎么办?

问题描述

安装 matplotlib 时出现错误。我该怎么办?

ERROR: Command errored out with exit status 1: 'c:\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize;
 sys.argv[0] = '"'"'C:\\Users\\jains\\AppData\\Local\\Temp\\pip-install-t4qri_bp\\matplotlib\\setup.py'"'"';
 __file__='"'"'C:\\Users\\jains\\AppData\\Local\\Temp\\pip-install-t4qri_bp\\matplotlib\\setup.py'"'"';
f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');
f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\jains\AppData\Local\Temp\pip-record-5_2e7bsk\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

标签: pythonmatplotlib

解决方案


最新版本matploitlib是支持的Python 3.7,但是这个也对我有用Python 3.8

python -m pip install -U matplotlib==3.2.0rc1

推荐阅读