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.

相关文章:

  • 2021-08-16
  • 2022-12-23
  • 2021-05-15
  • 2021-08-30
  • 2022-12-23
  • 2021-05-17
  • 2021-10-02
猜你喜欢
  • 2021-09-24
  • 2022-01-21
  • 2021-08-30
  • 2022-02-04
  • 2022-12-23
  • 2021-05-29
相关资源
相似解决方案