我已经尝试通过命令安装 scrapy 好几天了,pip install scrapy
.
下载要求后,我收到此错误代码。
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: 'c:\users\pancore builders\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\PANCORE BUILDERS\\AppData\\Local\\Temp\\pip-install-h2e9etct\\Twisted\\setup.py'"'"'; __file__='"'"'C:\\Users\\PANCORE BUILDERS\\AppData\\Local\\Temp\\pip-install-h2e9etct\\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\PANCORE BUILDERS\AppData\Local\Temp\pip-record-3qfphtaw\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\pancore builders\appdata\local\programs\python\python38\Include\Twisted' Check the logs for full command output.
我读到有关安装 Microsoft 的 Visual Code 的信息,但即使如此,它仍然对我不起作用。
可能是什么问题呢?
错误说明了一切。你必须下载Microsoft Visual C++ 构建工具为了摆脱这个错误。您可以从以下位置下载此内容here。无需为此下载 Visual Studio。
安装后,您必须重新启动系统。之后您可以安装您的库。
如果您使用的是python3.x版本,请运行此代码
pip3 install scrapy
如果您使用的是python2.x版本,请运行此代码
pip install scrapy
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)