Install Scrapy

Tuesday, March 9, 2010

# install twisted
$ cd /usr/local/src
$ svn co svn://svn.twistedmatrix.com/svn/Twisted/trunk twisted
$ cd twisted
$ sudo python setup.py install

# install libxml2
$  cd /usr/local/src
$ wget ftp://xmlsoft.org/libxml2/libxml2-2.7.6.tar.gz
$ tar zxvf libxml2-2.7.6.tar.gz
$ cd libxml2-2.7.6
$ ./configure --prefix=/usr/local/libxml2 --with-python=/usr/local/Cellar/python/2.6.4
$ make
$ sudo make install 
$ cd libxml2-2.7.3/python
$ sudo python setup.py install
# check the libxml2
$ python -c "import libxml2"
$ sudo easy_install -U Scrapy

This entry was tagged Mac, Python and scrapy

comments powered by Disqus

© 2009-2013 lxneng.com. All rights reserved. Powered by Pyramid

go to Top