python3.8下载matplotlib模块时,总是出现以下错误
ERROR: Command errored out with exit status 1: 'c:\users\air\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\air\AppData\Local\Temp\pip-install-5ntug3if\matplotlib\setup.py'"'"'; file='"'"'C:\Users\air\AppData\Local\Temp\pip-install-5ntug3if\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\air\AppData\Local\Temp\pip-record-rp63qqyg\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
有那位大神可以帮我看一下?
在cmd里输入下面的语句试试:
python -m pip install matplotlib
如果还是不行,再试试这个:
python -m pip install matplotlib --user air
good luck!
直接pip下载whl,不需要下载源代码编译,这个麻烦多一些
编译错误 没有c++的编译环境 可以安装c++的编译环境 或者安装编译好的whl包