您的位置:首页 > 编程语言 > Python开发

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

2012-04-28 10:31 489 查看
这几天在写python的爬虫,用到了很多的第三方的软件包,下面总结一下这些第三方软件包在windows x86 32上的安装过程,以备以后之用:

安装setuptools,上文已经讲过,这里不赘述/article/7778272.html

安装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.

按照上面的步骤即可
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: