当前位置:首页 > 深入 Python > 安装 Python > Windows 上的 Python | << >> | ||||
深入 Python从 Python 新手到专家 |
在 Windows 上,您有几种选择来安装 Python。
ActiveState 为 Python 制作了一个名为 ActivePython 的 Windows 安装程序,其中包含完整版的 Python、一个带有 Python 代码编辑器的 IDE,以及一些 Python 的 Windows 扩展,允许完全访问 Windows 特定的服务、API 和 Windows 注册表。
ActivePython 可以免费下载,但它不是开源的。这是我用来学习 Python 的 IDE,我建议您尝试一下,除非您有特定的理由不这样做。一个这样的理由可能是,当新版本的 Python 发布时,ActiveState 通常会延迟几个月才更新他们的 ActivePython 安装程序。如果您绝对需要最新版本的 Python,并且当您阅读本文时 ActivePython 仍然落后一个版本,那么您需要使用第二种方法在 Windows 上安装 Python。
第二种选择是“官方”Python 安装程序,由开发 Python 本身的人员分发。它是免费下载和开源的,并且始终是最新版本的 Python。
以下是安装 ActivePython 的步骤
从 http://www.activestate.com/Products/ActivePython/ 下载 ActivePython。
如果您使用的是 Windows 95、Windows 98 或 Windows ME,在安装 ActivePython 之前,您还需要下载并安装 Windows Installer 2.0。
双击安装程序,ActivePython-2.2.2-224-win32-ix86.msi。
逐步执行安装程序。
如果空间紧张,您可以执行自定义安装并取消选择文档,但除非您绝对无法节省 14MB 的空间,否则我不建议这样做。
安装完成后,关闭安装程序并选择
-> -> -> 。您将看到如下内容PythonWin 2.2.2 (#37, Nov 26 2002, 10:24:37) [MSC 32 bit (Intel)] on win32.
Portions Copyright 1994-2001 Mark Hammond ([email protected]) -
see 'Help/About PythonWin' for further copyright information.
>>>
通过访问 https://pythonlang.cn/ftp/python/ 并选择列出的最高版本号,然后下载 .exe 安装程序,下载最新的 Python Windows 安装程序。
双击安装程序,Python-2.xxx.yyy.exe。名称将取决于您阅读本文时可用的 Python 版本。
逐步执行安装程序。
如果磁盘空间紧张,您可以取消选择 HTMLHelp 文件、实用程序脚本 (Tools/) 和/或测试套件 (Lib/test/)。
如果您对您的计算机没有管理权限,您可以选择 非管理员安装。这只会影响创建注册表项和“开始”菜单快捷方式的位置。
,然后选择安装完成后,关闭安装程序并选择
-> -> -> 。您将看到如下内容Python 2.3.2 (#49, Oct 2 2003, 20:02:00) [MSC v.1200 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
****************************************************************
Personal firewall software may warn about the connection IDLE
makes to its subprocess using this computer's internal loopback
interface. This connection is not visible on any external
interface and no data is sent to or received from the Internet.
****************************************************************
IDLE 1.0
>>>
<< 安装 Python |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | |
Mac OS X 上的 Python >> |