【问题标题】:Is there any linux distribution that comes with python 3?python 3是否有任何Linux发行版?
【发布时间】:2011-03-08 20:22:34
【问题描述】:

我想知道是否有任何 Linux 发行版可以让您轻松安装和使用 Python 3。这意味着发行版不仅会提供 Python 3 二进制文件和更新,还会提供 Python 模块。

我知道我们可能不会这么快就看到任何 python 3 作为默认的 python 解释器,但至少我希望看到最新的 2.x 作为默认 (2.6+) 之一,并且已经安装了替代版本。

这可能是主要发行版之间的问题:Ubuntu、Fedora 还是 Suse?

【问题讨论】:

  • 任何一个!我在 Ubuntu 上使用 Py3k 已经有一段时间了。
  • 我不会费心创建另一个答案。几乎所有的 linux 发行版都有一个 Python 存储库(甚至 mac 默认安装了它)。如果您运行的是 Ubuntu 或 Linux Mint,请打开 synaptic 包管理器并搜索 python。您应该能够安装 2.6-3.1 版本。对于任何/所有第三方库,请在 PYPI(Python 包索引)上查找它们。

标签: python linux python-3.x


【解决方案1】:

Ubuntu 10.04 默认带有 Python 2.6.5,但以下 python 3 包也在标准存储库中:

python3 python3.1-minimal python3-dev python3.0 python3.1-profiler python3-doc python3.1 python3.1-tk python3-示例 python3.1-celementtree python3.1-wsgiref python3-gdbm python3.1-cjkcodecs python3.2 python3-gdbm-dbg python3.1-ctypes python3-all python3-minimal python3.1-dbg python3-all-dbg python3-pkg-resources python3.1-dev python3-all-dev python3-profiler python3.1-doc python3-bsddb python3-setuptools python3.1-elementtree python3-bsddb3 python3-tk python3.1-示例 python3-bsddb3-dbg python3-tk-dbg python3.1-gdbm python3-dbg

更新:
对于 *ubuntu 11.04,该列表(如预期的那样)要长一些)请注意,我省略了以 python3.1- 和 python3.2- 为前缀的包):

python3-all python3-examples python3-pkg-resources python3-all-dbg python3-gdbm python3-profiler python3-all-dev python3-gdbm-dbg python3-pygments python3-apt python3-gearman.libgearman python3-pyudev python3-apt-dbg python3-httplib2 python3-serial python3-烧杯 python3-ipaddr python3-setuptools python3-bsddb3 python3-jinja2 python3-sip python3-bsddb3-dbg python3-jinja2-dbg python3-sip-dbg python3-cxx python3-lxml python3-sip-dev python3-cxx-dev python3-lxml-dbg python3-sqlalchemy python3-dbg python3-mako python3-tk python3-dev python3-markupsafe python3-tk-dbg python3-distutils-extra python3-markupsafe-dbg python3-yaml python3-dns python3-minimal python3-yaml-dbg python3-doc python3-objgraph python3-zope.fixers

更新(2013-03-21):
当前版本的 *buntu (12.10) 已经有相当多的 Python 3 包可用(>200;太多,无法列出)。突出的例外包括 python3-django 和 python3-matplotlib(尽管后者将包含在 13.04 Raring Ringtail 中)。如果您需要尚未在包管理器中但已移植的包,则 12.10 包括 Python 3 的 pip 和 easy_install。

【讨论】:

  • 之前的几个 Ubuntu 版本也是如此(但不确定有多远)。
  • 请注意,其中大多数(全部?)只是属于标准的 python 发行版。几乎没有额外的库。
【解决方案2】:

根据DistroWatch,以下发行版目前包含 Python 版本 3:

  • Arch Linux
  • ArchBang Linux
  • 计算 Linux
  • CTKArch
  • FreeBSD
  • Frugalware Linux:当前,1.5
  • Funtoo Linux
  • Gentoo Linux
  • KahelOS
  • Litrix Linux
  • NetBSD
  • PapugLinux
  • 源码法师 GNU/Linux
  • Toorox
  • UTUTO

【讨论】:

    【解决方案3】:

    它们都有存储库,但如果您喜欢默认使用 python3 的存储库,我只知道 ArchLinux。

    【讨论】:

      【解决方案4】:

      Gentoo 有 Python3(我安装了 2.6.4-r1 和 3.1.2-r3,2.6 是默认的)。快速搜索显示,在我的机器上已经为这两个版本构建了在 2.x 和 3.x 上测试的 python 库的 ebuild(感谢上帝python-updater,显然)。

      Gentoo + Python 开发是一个非常好的组合(如果你喜欢 Gentoo 的工作方式,那就是)。

      【讨论】:

        【解决方案5】:

        我认为大多数发行版都有它。 Debian 拥有它,所以所有派生发行版(Ubuntu 等)都拥有它。 Fedora 也是如此。只是它不用于标准系统实用程序,因此只需键入 python 即可获得 2.x 解释器。

        【讨论】:

          【解决方案6】:

          Fedora,从13 开始,允许python3 与python2 并行安装,它包括一些更流行的python3 模块。

          【讨论】:

            猜你喜欢
            • 1970-01-01
            • 2012-11-08
            • 2019-09-06
            • 1970-01-01
            • 2010-09-17
            • 2021-01-29
            • 2011-10-10
            • 2017-03-23
            • 2011-08-18
            相关资源
            最近更新 更多