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

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


按照上面的步骤即可

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值