7

我即将在编程方面刷新自己,为此我决定使用 Python 2.6。我在网上搜索过,它给了我两个可能的安装程序供下载。一个来自 Python 站点,另一个来自 Activestate。我应该在我的 Windows 计算机上安装哪一个?

4

7 回答 7

6

ActiveState为您提供付费支持。虽然这对某些公司可能非常重要/至关重要,但大多数公司都可以使用 python.org 版本,尤其是那些进行实验的公司。

还有其他疯狂的,如 Stackless Python、Google 在 C++ 中的实现、Cython 等。我想说,除非速度/高效的多线程是必须的,否则这些对你来说并不重要。

使用常规的。CPython 可能比 C 慢一个数量级,但它工作得很好,而且它是最流行的 Python 实现,所以你知道它已经过很好的免费版本测试。

于 2010-01-24T04:59:43.103 回答
5

ActivePython本质上与 python.org 的发行版相同 - 除了您还可以获得以下内容:

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

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

于 2010-01-24T07:12:13.657 回答
5

我建议你从 python 站点下载

于 2010-01-24T04:59:09.297 回答
1

由于您运行的是 Windows,您可能还需要安装(在 Python 2.6 之后)Pywin32 - Python Extensions for Windows: . 它还有一个非常不错的 IDE (PythonWin),您可能更喜欢 IDLE。Pywin32 的一个版本也可用于 Python 3.x。

于 2010-01-24T07:14:18.603 回答
1

如果你想要的只是刷新你的编程技能,那么从官方网站安装版本应该绰绰有余

于 2010-01-24T05:51:00.600 回答
1

从 python.org 下载 Python 2.6 并阅读它的教程作为开始。

于 2010-01-24T05:54:20.920 回答
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,您需要营业执照。

于 2010-07-16T11:59:48.643 回答