python中安裝一些第三方軟體包

鴨脖發表於2012-04-28

這幾天在寫python的爬蟲,用到了很多的第三方的軟體包,下面總結一下這些第三方軟體包在windows x86 32上的安裝過程,以備以後之用:


安裝setuptools,上文已經講過,這裡不贅述http://blog.csdn.net/yelbosh/article/details/7518506


安裝MySQL-python,可以使用easy_install進行安裝,或者使用installer,安裝之後python的site-package下會多出一個MySQLdb的資料夾


安裝Djanjo,下載Django軟體包,執行setup指令碼,python setup.py install即可安裝。安裝完之後,使用django-admin startproject myProject即可建立新的django專案,切換至該目錄下,執行python manage.py runserver即可執行該專案,瀏覽器localhost:8000即可看到效果


安裝Scrapy,見文件:

http://doc.scrapy.org/en/latest/intro/install.html
Windows
There are two ways to install Scrapy in Windows:
using easy_install or pip - see Installing with easy_install or Installing with pip
using the Windows installer, but you need to download and install the dependencies manually:
Twisted for Windows - you may need to install pywin32 because of this Twisted bug
Install Zope.Interface (required by Twisted)
libxml2 for Windows
PyOpenSSL for Windows
Download the Windows installer from the Downloads page and install it.


按照上面的步驟即可

相關文章