Want to crawl some pictures on the Internet (you know ...) , but install Pyspider under Windows really laborious, the nonsense does not say much, pastes out to treat the comer.
1. Preparation: Python and pip installation (http://www.tuicool.com/articles/eiM3Er3/)
Note: Python is best to install 32bit, the best default loading C, otherwise there will be a variety of unexpected errors, I will utter.
2, the installation of Pycurl (do not know whether the Internet has this. exe installation file), the console input: Pip install Pycurl
3, install lxml, download link: https://pypi.python.org/pypi/lxml/2.3/
Note: Please select the corresponding version, my python is 2.7.12
4, download Phantomjs and set: http://phantomjs.org/download.html
Note: After downloading, extract to the same root directory as Python
Then add the Phantomjs.exe file path to the environment variable
5, reboot the computer, and then enter in the console: Pip install Pyspider
Note: There is always an error because there is no reboot before. There is also a need to explain, because there are several tutorials, in addition to some of the common installation package, I also installed a numpy-1.11.2+ MKL-CP27-CP27M-WIN32.WHL files and Vcforpython27.msi files, do not know the final success and these two things have no relationship, let's post them to download the link bar: http://www.lfd.uci.edu/~ gohlke/pythonlibs/#numpy
http://www.microsoft.com/en-us/download/details.aspx?id=44266