macos - Mac 上的 Python 3 setuptools

标签 macos python-3.x setuptools

我已经在 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/

相关文章:

python-3.x - Numpy 安装损坏的工具链 : cannot link a simple C program

python - 使用 setuptools 创建 python 可执行文件

python - 如何在 pip 19 和 python3.7 的包中指定可选和条件依赖项

objective-c - 如何知道当前架构是 mac 中的 i386 还是 x86_64? (Xcode)

macos - WebRTC捕获NSCursor图像导致内存泄漏

macos - 在 OSX 上运行 xunit.console.runner

Python 安装程序,将一个模块安装为另一个模块的子模块?

python - 通过 macports 安装 Py.test 时出错

python - IDLE 3.2.2 MacOS-X Lion 上的代字号字符

python - 将段落中句子的第一个单词大写