【问题标题】:No package installer with python 3.3?python 3.3没有包安装程序?
【发布时间】:2012-12-29 10:45:52
【问题描述】:

我刚刚为 Mac OS 下载了已安装的 python 3.3。我用standard package from python.org

我在 python 3.3 中找不到包安装工具。没有 pip、easy_install、setuptools。 看起来像一个引导问题:如何在没有包安装包的情况下安装包安装包?

我错过了一些明显的东西?还是我需要采取进一步的步骤才能获得软件包安装程序?

【问题讨论】:

  • @G.Kayaalp:此 setuptools 链接不支持 python 3.x,仅支持 2.x 鸡蛋。
  • 下载并运行distribute_setup.py。请参阅此处的说明:pypi.python.org/pypi/distribute
  • 好的,所以它是:1. curl -O http://python-distribute.org/distribute_setup.py 2. python3.3 distribute_setup.py 3. easy_install pip 现在我可以使用现代推荐的软件包安装程序 pip。 @ThomasK,如果您将此作为答案发布,我会接受,谢谢。
  • @ThomasK:请发布您的答案,以便我接受。谢谢。

标签: macos python-3.x pip easy-install


【解决方案1】:

Distribute 提供安装程序脚本distribute_setup.py。因此,在带有 curl 的 Unix-y 系统上,您可以使用以下命令:

curl -O http://python-distribute.org/distribute_setup.py
python3.3 distribute_setup.py
easy_install pip    # easy_install is part of distribute

如果您没有 curl,请以另一种方式下载脚本并运行其他两个命令。

【讨论】:

  • 谢谢,@ThomasK。 Python 以“包含电池”而自豪。缺少软件包安装程序是缺少一大块电池。
  • @PeriodicMaintenance:嗯,Python 上的打包仍然是一团糟。正在做一些工作来改进它,但没有及时为 3.3 做好准备。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2013-12-01
  • 2014-01-24
  • 1970-01-01
  • 2014-03-13
  • 2014-05-20
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多