python 2.7 - how to install scrapy on ubuntu? -


i know intall scrapy should install w3lib first,so install w3lib firstly,but when import scrapy in python ide,the program crashed. error:

creating twisted.egg-info  writing requirements twisted.egg-info\requires.txt  writing twisted.egg-info\pkg-info  writing top-level names twisted.egg-info\top_level.txt  writing dependency_links twisted.egg-info\dependency_links.txt  writing manifest file 'twisted.egg-info\sources.txt'  warning: manifest_maker: standard file '-c' not found    reading manifest file 'twisted.egg-info\sources.txt'  writing manifest file 'twisted.egg-info\sources.txt'  copying twisted\internet\_sigchld.c -> build\lib.win-amd64-2.7\twisted\internet  creating build\lib.win-amd64-2.7\twisted\internet\iocpreactor\iocpsupport  copying twisted\internet/iocpreactor/iocpsupport\iocpsupport.c -> build\lib.win-amd64-2.7\twisted\internet/iocpreactor/i ocpsupport  copying twisted\internet/iocpreactor/iocpsupport\winsock_pointers.c -> build\lib.win-amd64-2.7\twisted\internet/iocpreac tor/iocpsupport  copying twisted\python\_epoll.c -> build\lib.win-amd64-2.7\twisted\python  copying twisted\python\_initgroups.c -> build\lib.win-amd64-2.7\twisted\python  copying twisted\python\sendmsg.c -> build\lib.win-amd64-2.7\twisted\python  copying twisted\runner\portmap.c -> build\lib.win-amd64-2.7\twisted\runner  copying twisted\test\raiser.c -> build\lib.win-amd64-2.7\twisted\test  running build_ext 

what's wrong?

make sure had installed twisted, pyopenssl , pycrypto. these steps install scrapy on ubuntu. 1.install gcc , lxml:

sudo apt-get install python-dev sudo apt-get install libevent-dev sudo apt-get install libxml2 libxml2-dev apt-get install libxml2-dev libxslt-dev apt-get install python-lxml  

2.install twisted:

sudo apt-get install python-twisted python-libxml2 python-simplejson 

3.install pyopenssl:

wget http://pypi.python.org/packages/source/p/pyopenssl/pyopenssl-0.13.tar.gz tar -zxvf pyopenssl-0.13.tar.gz cd pyopenssl-0.13 sudo python setup.py install 

4.install pycrypto

wget http://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.5.tar.gz tar -zxvf pycrypto-2.5.tar.gz cd pycrypto-2.5 sudo python setup.py install 

5.install easy_install:(if don't have easy_install)

wget http://peak.telecommunity.com/dist/ez_setup.py python ez_setup.py 

6.install w3lib

sudo easy_install -u w3lib 

7.install scrapy

sudo easy_install scrapy 

if wanna know much,please goto blog.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -