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:


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:


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



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"


That's all, thx.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值