我已经在 Mac 上安装了 Python 3.2,我想使用 setuptool 的 easy_install
安装一些软件包.
唉,我唯一的 easy_install 版本是(使用命令行自动完成):
easy_install easy_install-2.5 easy_install-2.6
如何为 Python 3.2 安装软件包?
附录
我已关注 Thomas K的建议:
$ curl -O http://python-distribute.org/distribute_setup.py
$ python distribute_setup.py
但没有运气,
easy_install
仍然安装 Python 2.6
包:$ easy_install beautifulsoup
Searching for beautifulsoup
Best match: BeautifulSoup 3.2.0
Processing BeautifulSoup-3.2.0-py2.6.egg
如何强制 easy_install 检索
Python 3.2
包代替?
最佳答案
您需要安装 setuptools - 或者更确切地说,名为“distribute”的分支,因为原始 setuptools 不支持 Python 3。
这里有说明:http://pypi.python.org/pypi/distribute#installation-instructions
关于macos - Mac 上的 Python 3 setuptools,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9065489/