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

使用easy_install安装BeautifulSoup——Python

2013-07-04 21:37 447 查看
easy_install是Python的工具指令,方便于下载和安装Python中的第三方函数库。

1. 安装easy_install

(1) 首先到网站https://pypi.python.org/pypi/setuptools/0.6c11下载适合系统的setuptools,在网站的最后可以找到下载的合适版本

(我下载的是setuptools-0.6c11.win32-py2.7.exe):



然后直接点击安装即可。

(2)在系统变量Path中设置easy_install的路径:



这样easy_install就安装好了。就可以开始安装第三方的函数库了,如BeautifulSoup。

2. 安装BeautifulSoup(直接在命令提示符中:先找到easy_install.exe的路径,然后输入easy_install BeautifulSoup,即可安装。如下图所示。)



在网站http://peak.telecommunity.com/DevCenter/EasyInstall中有easy_install的用户使用指南可以看看。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: