有没有自带Python 3的Linux发行版?
我想知道有没有哪个Linux版本可以很方便地安装和使用Python 3。这意味着这个版本不仅要提供Python 3的程序和更新,还要提供Python模块。
我知道可能不久的将来我们不会看到Python 3作为默认的Python解释器,但至少我希望看到最新的2.x版本(2.6以上)作为默认版本,同时也希望能有其他版本已经安装好。
这可能是关于几个主要Linux版本的问题:Ubuntu、Fedora还是Suse?
6 个回答
5
从Fedora 13开始,用户可以同时安装python3和python2,而且还包含了一些比较流行的python3模块。
7
根据 DistroWatch 的信息,目前以下这些操作系统都包含了 Python 3 版本:
- Arch Linux
- ArchBang Linux
- Calculate Linux
- CTKArch
- FreeBSD
- Frugalware Linux: 当前版本, 1.5
- Funtoo Linux
- Gentoo Linux
- KahelOS
- Litrix Linux
- NetBSD
- PapugLinux
- Source Mage GNU/Linux
- Toorox
- UTUTO
11
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个,太多了不能一一列举)。比较重要的例外包括 python3-django 和 python3-matplotlib(不过后者会在 13.04 版本中包含)。如果你需要的软件包还没有在软件管理器里,但已经移植过,12.10 里有 pip 和 easy_install 可以用来安装 Python 3 的软件包。