Scrapy 安装(需要 Microsoft Visual C++ 14.0) [英] Scrapy Installation (Microsoft Visual C++ 14.0 is required)
问题描述
我已经尝试通过命令pip install scrapy
安装scrapy好几天了.
下载要求后,我收到此错误代码.
<块引用> 错误:需要 Microsoft Visual C++ 14.0.使用Microsoft Visual C++ 构建工具"获取它:https://visualstudio.microsoft.com/downloads/----------------------------------------错误:命令出错,退出状态为 1:'c:userspancore buildersappdatalocalprogramspythonpython38python.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('"'"'
'"'"', '"'"'
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersPANCORE BUILDERSAppDataLocalTemppip-record-3qfphtawinstall-record.txt' --single-version-externally-managed --compile --install-headers 'c:userspancore buildersappdatalocalprogramspythonpython38IncludeTwisted' 检查日志以获取完整的命令输出.
我阅读了有关 Microsoft 安装 Visual Code 的文章,但即便如此,它仍然对我不起作用.
可能是什么问题?
错误说明了一切.您必须下载 Microsoft Visual C++ Build Tools 才能摆脱此错误.您可以从 此处.无需为此下载visual studio.
安装后,您必须重新启动系统.之后,您可以安装您的库.
如果您使用的是python3.x版本,请运行此代码
pip3 安装scrapy
如果您使用的是 python2.x 版本,请运行此代码
pip install scrapy
I have been trying to install scrapy for days now through the command, pip install scrapy
.
After downloading the requirements, I am getting this error code.
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:userspancore buildersappdatalocalprogramspythonpython38python.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('"'"' '"'"', '"'"' '"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersPANCORE BUILDERSAppDataLocalTemppip-record-3qfphtawinstall-record.txt' --single-version-externally-managed --compile --install-headers 'c:userspancore buildersappdatalocalprogramspythonpython38IncludeTwisted' Check the logs for full command output.
I read about installing Visual Code by Microsoft, but even then it is still not working for me.
What could be the problem?
The error says everything. You have to download Microsoft Visual C++ Build Tools for get rid of from this error. You can download this from here. There is no need to download visual studio for this.
After the installation, you must restart your system. After that you can install your library.
If you are using python3.x version, run this code
pip3 install scrapy
If you are using python2.x version, run this code
pip install scrapy
这篇关于Scrapy 安装(需要 Microsoft Visual C++ 14.0)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!