Microsoft Visual C++ 14.0 is required.

不打扰是莪最后的温柔 提交于 2019-12-22 04:37:31

问题


when i install scrapy package,The following error occurred:

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

but the website is not found,so how to solve the problem?


回答1:


The package is asking for the VS2015 build tools, which are now available as part of the VS2017 build tools. Download them here, or more specifically, here.




回答2:


You need to install the latest version of the Visual Studio. By version 14.0, only Visual Studio 2015 is required, but to provide support for further releases and some other programs and libraries that you might use, it is recommended to install the latest (Visual Studio 2017) which also comes with the 2015.

That link does not work, but you can find the new here: Visual Studio Build tools

Make sure to tick "Languages->C++". It should be automatic, but just to make sure.

Also, you probably would want to upgrade your setup tools for Python, setuptools. You can do this with:

pip install --upgrade setuptools

The reason you would want to do that is, based on experience, because that error can continue to persist with Python even after you install the Visual Studio and the setup tools are not up to date.




回答3:


I ran into issues getting this to work on Python 2 and 3 even after re-downloading Microsoft Visual tools, upgrading setuptools, and trying to install scrapy again.

Workaround solution that worked for me: I already had an installation of Anaconda and was able to install Scrapy using Anaconda.



来源:https://stackoverflow.com/questions/51927014/microsoft-visual-c-14-0-is-required

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!