windows10 install scrapy

environment:win10+python3.6.1+vs2017

target:install scrapy1.5.0

problem 1:

When I run"python3 -m pip install scrapy", error occurs:

command 'cl.exe' failed.

To solve the problem, you need to:

windows10 install scrapy

To find where your cl.exe is ,maybe you need to search it in C:/.

In my computer, it's hidden here:

C:\Program Files (x86)\Microsoft Visual Studio\Shared\14.0\VC\bin\amd64

Add it into the system variable please:

windows10 install scrapy

I run command "python3 -m pip install scrapy" at cmd again, and I meet problem2:


windows10 install scrapy

So the key problem is to install twisted first.

You can find this on the very website:https://www.lfd.uci.edu/~gohlke/pythonlibs/

I choose:Twisted‑17.9.0‑cp36‑cp36m‑win_amd64.whl

Then I follow this tutotial to install twisted:

(1)to enter the file of python36(or 3x), and run command:"python3 -m pip install wheel"

(2)to move the file "Twisted‑17.9.0‑cp36‑cp36m‑win_amd64.whl" to the very place:

C:\Users\XXXXX\AppData\Local\Programs\Python\Python36\Scripts

(3)run command: "python3 -m pip install Twisted‑17.9.0‑cp36‑cp36m‑win_amd64.whl"

(4)run command: "python3 -m pip install scrapy"

windows10 install scrapy

That's all, thx.