鱼C论坛

 找回密码
 立即注册
查看: 1294|回复: 1

cmd pip 安装 mine

[复制链接]
发表于 2021-5-11 14:19:23 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
  Running setup.py install for psutil ... error
    ERROR: Command errored out with exit status 1:
     command: 'd:\新建文件夹 (2)\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'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[0] = '"'"'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.



这个错误怎么解决
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2021-5-11 18:07:42 | 显示全部楼层


应该是缺少 Microsoft Visual C++ ,点击报错中连接去下载看看

可以按照这篇文章试试看:

https://www.freesion.com/article/16765351/

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-1-15 20:58

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表