7

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?

zxy
  • 71
  • 1
  • 1
  • 4

4 Answers4

3

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.

Mankarse
  • 39,818
  • 11
  • 97
  • 141
1

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.

Fikret Basic
  • 350
  • 1
  • 7
0

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.

Emmanuel Mendoza
  • 721
  • 7
  • 12
0

Try this approach:

  1. Visit https://pypi.org/project/Scrapy/#files
  2. Download the latest 'Wheel' file-type
  3. pip install "downloaded.whl" (i.e., pip install Scrapy-1.8.0-py2.py3-none-any.whl)
Janib Soomro
  • 446
  • 6
  • 12