setuptools能在python 3.2.x上工作吗

7 投票
1 回答
7246 浏览
提问于 2025-04-17 03:07

Windows上用的Python 2.7的setuptools,能不能和Python 3.2.x一起用呢?我在安装的时候,安装程序没法找到Python的设置。是不是应该等新的版本出来再试?

1 个回答

14

注意:这个回答已经过时,Setuptools 现在可以在 Python 3 上使用。Distribute 已经不再推荐使用。

Setuptools 本身在 Python 3 上是不能用的。不过你可以使用 Distribute,它是 Setuptools 的一个分支,能够直接替代 Setuptools:

http://packages.python.org/distribute/

http://pypi.python.org/pypi/distribute

要安装 Distribute,请从页面底部开始:

curl -O http://python-distribute.org/distribute_setup.py
python distribute_setup.py

撰写回答