python安装第三方包的时候出现这个问题要怎么解决

错误代码太多就复制了顶部和底部的报错信息

顶部报错:

ERROR: Command errored out with exit status 1:
     command: 'c:\users\揽茝\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\揽茝\\AppData\\Local\\Temp\\pip-install-24jpbpip\\twisted\\setup.py'"'"'; __file__='"'"'C:\\Users\\揽茝\\AppData\\Local\\Temp\\pip-install-24jpbpip\\twisted\\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-0w70zds2\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\揽茝\appdata\local\programs\python\python39\Include\Twisted'
         cwd: C:\Users\揽茝\AppData\Local\Temp\pip-install-24jpbpip\twisted\

底部报错:

error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\揽茝\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\揽茝\\AppData\\Local\\Temp\\pip-install-24jpbpip\\twisted\\setup.py'"'"'; __file__='"'"'C:\\Users\\揽茝\\AppData\\Local\\Temp\\pip-install-24jpbpip\\twisted\\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-0w70zds2\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\揽茝\appdata\local\programs\python\python39\Include\Twisted' Check the logs for full command output.

查看全部
qq_46176355
qq_46176355
2020/11/27 17:50
  • python
  • 点赞
  • 收藏
  • 回答
    私信

2个回复