安装 Scrapy 错误时出错:需要 Microsoft Visual C++ 14.0 [英] Error while installing Scrapy error: Microsoft Visual C++ 14.0 is required
问题描述
我发现scrapy是一个很棒的抓取工具,所以我尝试在我的机器上安装scrapy,但是当我尝试执行pip install scrapy
时,它安装了一段时间并抛出了这个错误..
I found about scrapy that is a great tool scraping so i tried to install scrapy on my machine, but when i tried to do pip install scrapy
it installed for a while and threw me this error..
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
我尝试在虚拟环境中安装它,但问题仍然存在.
I tried to install it in virtual environment but still the problem persists.
这是我在错误后得到的..
here is what i got after the error..
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\
有什么帮助吗?
推荐答案
UPDATE正如有人在编辑中指出的那样,如果您只下载 vc_redist.x64.exe,它只有 15MB,为此请转到其他工具和框架"并选择 MS Visual C++
UPDATE As some one pointed out in the edit, if you download only the vc_redist.x64.exe it's just 15MB, for that go to "other tools and frameworks" and choose MS Visual C++
通过从这里安装工具解决了问题
问题是一些 python 模块需要 C++ 工具来编译,因为它们是用 C++ 编写的.
the thing is that some python modules require C++ tools to compile with a python wrapper around, as they are written in C++.
下载安装程序后,您可以选择特定工具或下载提供的其他工具.
once the setup is downloaded you can select the specific tools or download other facilities provided.
它大约有 4 GB,但如果将来您需要使用其他一些用 C++ 制作的模块,就可以解决这个问题.
it's somewhere around 4 GB but solves the purpose if in future you need to use some other module which are made in C++.
这篇关于安装 Scrapy 错误时出错:需要 Microsoft Visual C++ 14.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!