Can
Be Better

windows10 python3.8 安装scrapy twisted报错

当windows python3.8安装Scrapy时会报错,如下

第一步
https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted
下载对应的twisted cp后面的数字对应python版本 38 是python3.8 amd64指64位

Twisted-20.3.0-cp38-cp38-win32.whl

输入命令:

pip3 install .\Twisted-19.10.0-cp38-cp38-win_amd64.whl

输入命令

pip3 install scrapy

Running setup.py install for Twisted ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\say\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\say\\AppData\\Lo
cal\\Temp\\pip-install-hzk_1v14\\Twisted\\setup.py'"'"'; __file__='"'"'C:\\Users\\say\\AppData\\Local\\Temp\\pip-install-hzk_1v14\\Twisted\\setup.py'"'"';f=getattr(token
ize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Us
ers\say\AppData\Local\Temp\pip-record-mr21w5to\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\say\appdata\local\programs\p
ython\python38-32\Include\Twisted'
building 'twisted.test.raiser' extension
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\say\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] =
'"'"'C:\\Users\\say\\AppData\\Local\\Temp\\pip-install-hzk_1v14\\Twisted\\setup.py'"'"'; __file__='"'"'C:\\Users\\say\\AppData\\Local\\Temp\\pip-install-hzk_1v14\\Twist
ed\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exe
c'"'"'))' install --record 'C:\Users\say\AppData\Local\Temp\pip-record-mr21w5to\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\u
sers\say\appdata\local\programs\python\python38-32\Include\Twisted' Check the logs for full command output.
WARNING: You are using pip version 20.1.1; however, version 20.2.2 is available.
You should consider upgrading via the 'c:\users\say\appdata\local\programs\python\python38-32\python.exe -m pip install --upgrade pip' command.

不开启评论,如有问题疑问请发邮件。[email protected]最长的路 » windows10 python3.8 安装scrapy twisted报错