how to Install Scrapy in Pycharm IDE on windows machine

Installing Scrapy on a windows machine is rather annoying.
The issue is caused by the dependencies lxml  , I am using virutal environment.Open the project page ( ctrl  alt  S )

First , Type in wheel in the search and  install the package wheel.                                        首先要安装pip install wheel

then go to this website and find xml and choose win32 if you have intel processor or amd64 if you have amd processor.
http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

The copy the file to somewhere in your virtualenv and run the following command on it.

python.exe -m pip install lxml-3.6.4-cp27-cp27m-win32.whl

 

here is the output.

C:\Users\Elin\virtualenv1\Scripts>python.exe -m pip install lxml-3.6.1-cp27-cp27m-win32.whl

Processing c:\users\elin\virtualenv1\scripts\lxml-3.6.1-cp27-cp27m-win32.whl
Installing collected packages: lxml
Successfully installed lxml-3.6.1

Finally, go back to the project package on pycharm editor
open it , ( ctrl  shift  S )

Type Scrapy and install it.

您可以选择一种方式赞助本站

支付宝转账赞助

支付宝扫一扫赞助

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

图片 表情