我打算重新学习编程,选择了Python 2.6。在网上搜索后,发现有两个可供下载的安装程序,一个来自Python官网,另一个来自Activestate。请问我应该在Windows电脑上安装哪一个?
我打算重新学习编程,选择了Python 2.6。在网上搜索后,发现有两个可供下载的安装程序,一个来自Python官网,另一个来自Activestate。请问我应该在Windows电脑上安装哪一个?
ActiveState 提供付费支持。虽然这对某些公司来说可能非常重要/关键,但大多数人只需要使用 python.org 版本,特别是那些进行实验的人。
还有其他一些像 Stackless Python、Google 的 C++ 实现、Cython 等疯狂的东西。我认为除非速度/高效多线程是必须的,否则这些对您来说并不重要。
使用常规版本即可。CPython 可能比 C 慢一个数量级,但它完全可以正常工作,并且是最受欢迎的 Python 实现,因此您知道它经过了充分的免费测试。
ActivePython基本上和python.org的发行版一样,但您还可以获得以下内容:
如果您是企业主,则ActiveState还可以提供商业支持。
从python.org下载Python 2.6,并阅读其教程作为入门。
由于您正在运行Windows操作系统,您可能还想在安装Python 2.6之后安装Pywin32 - Python Extensions for Windows: 。它还有一个非常好的IDE(PythonWin),您可能更喜欢使用它而不是IDLE。Pywin32的某个版本也适用于Python 3.x。
我也推荐使用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,您需要商业许可。