我应该使用哪个Python安装程序?

7

我打算重新学习编程,选择了Python 2.6。在网上搜索后,发现有两个可供下载的安装程序,一个来自Python官网,另一个来自Activestate。请问我应该在Windows电脑上安装哪一个?


为什么不使用Python 2.7呢? - John Machin
也许是因为2.7版本发布时间比这个问题提出的时间晚了六个月,而且“from future import”并不是那么复杂。 - foosion
7个回答

6

ActiveState 提供付费支持。虽然这对某些公司来说可能非常重要/关键,但大多数人只需要使用 python.org 版本,特别是那些进行实验的人。

还有其他一些像 Stackless Python、Google 的 C++ 实现、Cython 等疯狂的东西。我认为除非速度/高效多线程是必须的,否则这些对您来说并不重要。

使用常规版本即可。CPython 可能比 C 慢一个数量级,但它完全可以正常工作,并且是最受欢迎的 Python 实现,因此您知道它经过了充分的免费测试。


2
ActivePython只是一个很好的发行版,总体而言,ActivePerl和ActiveTcl也是如此。 - Joe Internet

5
我建议您从Python官网下载

5

ActivePython基本上和python.org的发行版一样,但您还可以获得以下内容:

  • PyPM:来自ActiveState的二进制包管理器,因此您可以安装额外的模块而无需自己编译。(查看可用模块
  • 其他软件包:virtualenv、setuptools/easy_install、pip
  • PyWin32 - 从Python访问Windows API
  • 额外的文档/教程(在Windows上为CHM),例如Dive Into Python、FAQ、PEPs等。
  • PythonWin IDE(虽然Komodo Edit可能更适合某些人)

如果您是企业主,则ActiveState还可以提供商业支持


1
如果你只是想要提升编程技能,那么从官方网站安装版本就足够了。

1

从python.org下载Python 2.6,并阅读其教程作为入门。


1

由于您正在运行Windows操作系统,您可能还想在安装Python 2.6之后安装Pywin32 - Python Extensions for Windows: 。它还有一个非常好的IDE(PythonWin),您可能更喜欢使用它而不是IDLE。Pywin32的某个版本也适用于Python 3.x。


0

我也推荐使用ACTIVESTATE - 如果你想要安装包时使用标准python.org包,你会遇到很多麻烦!

但是要时刻准备好被ActiveState咬一口:

D:\>pypm search lxml
*** Packages marked [BE] below require a valid
*** Business Edition license to install. Please visit
*** http://www.activestate.com/business-edition for more details.

 domstripper lxml.html based DOM manipulator
 flea        Test WSGI applications using lxml
 gocept.lxml Primarily proivdes zope3 interface definitions for lxml
 lwebstring  lxml-based implementation of webstring, an XML template engine
 [BE] lxml   Powerful and Pythonic XML processing library combining libxml2/libxsl
 [BE] lxml-wrapper          lxml wrapper that simplifies xml generation code.
 [BE] lxmlmiddleware        stack of middleware to deal with a response as a LXML etree
 [BE] lxmlproc              lxml version of xsltproc
 plone.recipe.lxml     Buildout recipe that creates a lxml egg
 repoze.xmliter    Wrapper for ``lxml`` trees which serializes to string upon iteration.
 z3c.recipe.staticlxml A recipe to build lxml

他们在他们的软件包管理器中不免费提供lxml,您需要商业许可。


你能否修改你的回答,因为现在可以通过PyPM免费安装lxml了?http://code.activestate.com/pypm/lxml/ - Sridhar Ratnakumar

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接