我想知道是否有可以轻松安装和使用 Python 3 的 Linux 发行版。这意味着发行版不仅会提供 Python 3 二进制文件和更新,还会提供 python 模块。
我知道我们可能不会很快看到任何 python 3 作为默认的 python 解释器,但至少我希望看到最新的 2.x 作为默认 (2.6+) 和已经安装的替代版本。
可能是主要发行版之间的问题:Ubuntu、Fedora 或 Suse?
最佳答案
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-examples 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-examples 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-beaker 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;太多无法列出)。突出的异常(exception)包括 python3-django 和 python3-matplotlib(尽管后者将包含在 13.04 Raring Ringtail 中)。如果您需要一个尚未在包管理器中但已经移植的包,12.10 包括适用于 Python 3 的 pip 和 easy_install。
关于python - python 3 是否有任何 linux 发行版?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3127715/