安装 Python 解释器Install Python interpreters
06/05/2019
本文内容
默认情况下,在 Visual Studio 2017 和更高版本中安装 Python 开发工作负载也会同时安装 Python 3(64 位)。By default, installing the Python development workload in Visual Studio 2017 and later also installs Python 3 (64-bit). 可以根据需要选择安装 32 位和 64 位版本的 Python 2 和 Python 3,并安装 Miniconda (Visual Studio 2019) 或者 Anaconda 2/Anaconda 3 (Visual Studio 2017),如安装中所述。You can optionally choose to install 32-bit and 64-bit versions of Python 2 and Python 3, along with Miniconda (Visual Studio 2019) or Anaconda 2/Anaconda 3 (Visual Studio 2017), as described in Installation.
或者,也可以从“添加环境” 对话框中安装标准 Python 解释器。Alternately, you can install standard python interpreters from the Add Environment dialog. 在“Python 环境”窗口或 Python 工具栏中选择“添加环境”命令,选择“Python 安装”选项卡,指示安装哪个解释器,并选择“安装”。Select the Add Environment command in the Python Environments window or the Python toolbar, select the Python installation tab, indicate which interpreters to install, and select Install.
除了 Visual Studio 安装程序,还可以手动安装下表列出的任何解释器。You can also manually install any of the interpreters listed in the table below outside of the Visual Studio installer. 例如,如果在安装 Visual Studio 之前安装了 Anacon