cmd pip 安装 mine
Running setup.py install for psutil ... errorERROR: Command errored out with exit status 1:
command: 'd:\新建文件夹 (2)\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv = '"'"'C:\\Users\\亦心\\AppData\\Local\\Temp\\pip-install-qq8pnhwq\\psutil\\setup.py'"'"'; __file__='"'"'C:\\Users\\亦心\\AppData\\Local\\Temp\\pip-install-qq8pnhwq\\psutil\\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\亦心\AppData\Local\Temp\pip-record-bvicwrel\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\亦心\AppData\Local\Temp\pip-install-qq8pnhwq\psutil\
Complete output (18 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\psutil
copying psutil\_common.py -> build\lib.win-amd64-3.8\psutil
copying psutil\_compat.py -> build\lib.win-amd64-3.8\psutil
copying psutil\_psbsd.py -> build\lib.win-amd64-3.8\psutil
copying psutil\_pslinux.py -> build\lib.win-amd64-3.8\psutil
copying psutil\_psosx.py -> build\lib.win-amd64-3.8\psutil
copying psutil\_psposix.py -> build\lib.win-amd64-3.8\psutil
copying psutil\_pssunos.py -> build\lib.win-amd64-3.8\psutil
copying psutil\_pswindows.py -> build\lib.win-amd64-3.8\psutil
copying psutil\__init__.py -> build\lib.win-amd64-3.8\psutil
running build_ext
building '_psutil_windows' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'd:\新建文件夹 (2)\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv = '"'"'C:\\Users\\亦心\\AppData\\Local\\Temp\\pip-install-qq8pnhwq\\psutil\\setup.py'"'"'; __file__='"'"'C:\\Users\\亦心\\AppData\\Local\\Temp\\pip-install-qq8pnhwq\\psutil\\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\亦心\AppData\Local\Temp\pip-record-bvicwrel\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 21.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
这个错误怎么解决
应该是缺少 Microsoft Visual C++ ,点击报错中连接去下载看看
可以按照这篇文章试试看:
https://www.freesion.com/article/16765351/
页:
[1]