python中安装一些第三方软件包

来源:互联网 发布:java json转list对象 编辑:程序博客网 时间:2024/04/27 14:32

这几天在写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.


按照上面的步骤即可

原创粉丝点击