我读了这篇文章但没有找到解决方案:http://docs.python.org/install/index.html http://docs.python.org/install/index.html
“正常”的方法是:
- 访问美丽汤网站,http://www.crummy.com/software/BeautifulSoup/ http://www.crummy.com/software/BeautifulSoup/
- 下载包
- 打开包装
- 在终端窗口中,
cd
到结果目录
- Type
python setup.py install
另一种解决方案是使用easy_install
. Go to http://peak.telecommunity.com/DevCenter/EasyInstall http://peak.telecommunity.com/DevCenter/EasyInstall),使用该页面上的说明安装包,然后在终端窗口中键入:
easy_install BeautifulSoup4
# for older v3:
# easy_install BeautifulSoup
easy_install
将负责下载、解压、构建和安装包。使用的优点easy_install
是它知道如何搜索许多不同的 Python 包,因为它查询PyPI http://pypi.python.org/注册表。因此,一旦你有了easy_install
在您的计算机上,您只需通过 shell 中的一个命令即可安装许多不同的第三方软件包。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)