小编典典

安装Scrapy错误时发生错误:需要Microsoft Visual C ++ 14.0

scrapy

我发现Scrapy是一种很好的刮刮工具,因此我尝试在机器上安装刮板,但是当我尝试将pip install scrapy其安装一段时间后,就抛出了此错误。

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

我试图在虚拟环境中安装它,但问题仍然存在。

编辑:这是错误后我得到的..

    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

    ----------------------------------------
Command "d:\pycharmprojects\environments\scrapyenv\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\User\\AppData\\Local\\Temp\\pip-build-arbeqlly\\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\User\AppData\Local\Temp\pip-jdj93131-record\install-record.txt --single-version-externally-managed --compile --install-headers d:\pycharmprojects\environments\scrapyenv\include\site\python3.5\Twisted" failed with error code 1 in C:\Users\User\AppData\Local\Temp\pip-build-arbeqlly\Twisted\

有什么帮助吗?


阅读 566

收藏
2020-04-10

共1个答案

小编典典

正如某人在编辑中指出的那样,如果仅下载vc_redist.x64.exe,则只有15MB,为此请转到“其他工具和框架”并选择MS Visual C ++

通过从此处安装工具解决了问题

事实是,某些python模块需要C 工具才能用python包装器进行编译,因为它们是用C 编写的。

下载设置后,你可以选择特定的工具或下载提供的其他功能。

它的大小大约为4 GB,但是可以解决这个问题,如果将来你需要使用C ++制作的其他模块。

2020-04-10