企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
### 导航 - [索引](../genindex.xhtml "总目录") - [模块](../py-modindex.xhtml "Python 模块索引") | - [下一页](cmdline.xhtml "1. 命令行与环境") | - [上一页](../tutorial/appendix.xhtml "16. 附录") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) » - zh\_CN 3.7.3 [文档](../index.xhtml) » - $('.inline-search').show(0); | # 安装和使用 Python 这一部分文档专门介绍在不同平台上配置Python环境的一般方法,解释器的调用以及方便使用Python的技巧。 - [1. 命令行与环境](cmdline.xhtml) - [1.1. 命令行](cmdline.xhtml#command-line) - [1.1.1. 接口选项](cmdline.xhtml#interface-options) - [1.1.2. 通用选项](cmdline.xhtml#generic-options) - [1.1.3. 其他选项](cmdline.xhtml#miscellaneous-options) - [1.1.4. 不应当使用的选项](cmdline.xhtml#options-you-shouldn-t-use) - [1.2. 环境变量](cmdline.xhtml#environment-variables) - [1.2.1. 调试模式变量](cmdline.xhtml#debug-mode-variables) - [2. 在Unix平台中使用Python](unix.xhtml) - [2.1. 获取最新版本的Python](unix.xhtml#getting-and-installing-the-latest-version-of-python) - [2.1.1. 在Linux中](unix.xhtml#on-linux) - [2.1.2. 在FreeBSD和OpenBSD上](unix.xhtml#on-freebsd-and-openbsd) - [2.1.3. 在OpenSolaris系统上](unix.xhtml#on-opensolaris) - [2.2. 构建Python](unix.xhtml#building-python) - [2.3. 与Python相关的路径和文件](unix.xhtml#python-related-paths-and-files) - [2.4. 杂项](unix.xhtml#miscellaneous) - [2.5. 编辑器和集成开发环境](unix.xhtml#editors-and-ides) - [3. 在Windows上使用 Python](windows.xhtml) - [3.1. 完整安装程序](windows.xhtml#the-full-installer) - [3.1.1. 安装步骤](windows.xhtml#installation-steps) - [3.1.2. 删除 MAX\_PATH 限制](windows.xhtml#removing-the-max-path-limitation) - [3.1.3. 无UI 安装](windows.xhtml#installing-without-ui) - [3.1.4. 免下载安装](windows.xhtml#installing-without-downloading) - [3.1.5. 修改安装](windows.xhtml#modifying-an-install) - [3.2. Microsoft Store包](windows.xhtml#the-microsoft-store-package) - [3.2.1. 已知的问题](windows.xhtml#known-issues) - [3.3. nuget.org 安装包](windows.xhtml#the-nuget-org-packages) - [3.4. 可嵌入的包](windows.xhtml#the-embeddable-package) - [3.4.1. Python应用程序](windows.xhtml#python-application) - [3.4.2. 嵌入Python](windows.xhtml#embedding-python) - [3.5. 替代捆绑包](windows.xhtml#alternative-bundles) - [3.6. 配置Python](windows.xhtml#configuring-python) - [3.6.1. 附录:设置环境变量](windows.xhtml#excursus-setting-environment-variables) - [3.6.2. 查找Python可执行文件](windows.xhtml#finding-the-python-executable) - [3.7. 适用于Windows的Python启动器](windows.xhtml#python-launcher-for-windows) - [3.7.1. 入门](windows.xhtml#getting-started) - [3.7.1.1. 从命令行](windows.xhtml#from-the-command-line) - [3.7.1.2. 从虚拟环境](windows.xhtml#virtual-environments) - [3.7.1.3. 从脚本](windows.xhtml#from-a-script) - [3.7.1.4. 从文件关联](windows.xhtml#from-file-associations) - [3.7.2. Shebang Lines](windows.xhtml#shebang-lines) - [3.7.3. shebang lines 的参数](windows.xhtml#arguments-in-shebang-lines) - [3.7.4. 自定义](windows.xhtml#customization) - [3.7.4.1. 通过INI文件自定义](windows.xhtml#customization-via-ini-files) - [3.7.4.2. 自定义默认的Python版本](windows.xhtml#customizing-default-python-versions) - [3.7.5. 诊断](windows.xhtml#diagnostics) - [3.8. 查找模块](windows.xhtml#finding-modules) - [3.9. 附加模块](windows.xhtml#additional-modules) - [3.9.1. PyWin32](windows.xhtml#pywin32) - [3.9.2. cx\_Freeze](windows.xhtml#cx-freeze) - [3.9.3. WConio](windows.xhtml#wconio) - [3.10. 在Windows上编译Python](windows.xhtml#compiling-python-on-windows) - [3.11. 其他平台](windows.xhtml#other-platforms) - [4. 在苹果系统上使用 Python](mac.xhtml) - [4.1. 获取和安装 MacPython](mac.xhtml#getting-and-installing-macpython) - [4.1.1. 如何运行 Python 脚本](mac.xhtml#how-to-run-a-python-script) - [4.1.2. 运行有图形界面的脚本](mac.xhtml#running-scripts-with-a-gui) - [4.1.3. 配置](mac.xhtml#configuration) - [4.2. IDE](mac.xhtml#the-ide) - [4.3. 安装额外的 Python 包](mac.xhtml#installing-additional-python-packages) - [4.4. Mac 上的图形界面编程](mac.xhtml#gui-programming-on-the-mac) - [4.5. 在 Mac 上分发 Python 应用程序](mac.xhtml#distributing-python-applications-on-the-mac) - [4.6. 其他资源](mac.xhtml#other-resources) ### 导航 - [索引](../genindex.xhtml "总目录") - [模块](../py-modindex.xhtml "Python 模块索引") | - [下一页](cmdline.xhtml "1. 命令行与环境") | - [上一页](../tutorial/appendix.xhtml "16. 附录") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) » - zh\_CN 3.7.3 [文档](../index.xhtml) » - $('.inline-search').show(0); | © [版权所有](../copyright.xhtml) 2001-2019, Python Software Foundation. Python 软件基金会是一个非盈利组织。 [请捐助。](https://www.python.org/psf/donations/) 最后更新于 5月 21, 2019. [发现了问题](../bugs.xhtml)? 使用[Sphinx](http://sphinx.pocoo.org/)1.8.4 创建。