使用easy_install安装BeautifulSoup——Python

来源:互联网 发布:淘宝上买玉镯子可靠吗 编辑:程序博客网 时间:2024/05/16 14:38

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的用户使用指南可以看看。