文章目录

  • 一、下载 Python 各版本 SDK
  • 二、安装 Python
    • 1、安装 Python 2.7
    • 2、安装 Python 3.6.8 ( 3.7 / 3.8 / 3.9 / 3.10 安装方式相同 )





一、下载 Python 各版本 SDK



进入 Python 主页 https://www.python/ , 选择下载 Python 版本 ;

  • Windows 版本下载 : https://www.python/downloads/windows/
  • macOS 版本下载 : https://www.python/downloads/macos/
  • Linux/Unix 版本下载 : https://www.python/downloads/source/

下载几个主要的版本 , 进行安装 ;

  • 2.7.18 2.7.18 2.7.18 : https://www.python/ftp/python/2.7.18/python-2.7.18.amd64.msi
  • 3.6.8 3.6.8 3.6.8 : https://www.python/ftp/python/3.6.8/python-3.6.8-amd64.exe
  • 3.7.9 3.7.9 3.7.9 : https://www.python/ftp/python/3.7.9/python-3.7.9-amd64.exe
  • 3.8.10 3.8.10 3.8.10 : https://www.python/ftp/python/3.8.10/python-3.8.10-amd64.exe
  • 3.9.7 3.9.7 3.9.7 : https://www.python/ftp/python/3.9.7/python-3.9.7-amd64.exe
  • 3.10.0 3.10.0 3.10.0 : https://www.python/ftp/python/3.10.0/python-3.10.0-amd64.exe

将下载的这几个 Python 版本都安装一下 ;





二、安装 Python




1、安装 Python 2.7


双击 python-2.7.18.amd64.msi 文件 , 执行安装程序 ;

选择安装路径 ;

选择安装组件 ;

等待安装完成 , 期间需要授权管理员用户 ;

完成安装 ;


2、安装 Python 3.6.8 ( 3.7 / 3.8 / 3.9 / 3.10 安装方式相同 )


选择 " Customize installation " , 勾选 " Add Python 3.6 to Path " 选项 ;

可选功能全部勾选 ;

高级选项按照如下选择 , 设置安装路径 ;

等待安装完毕

安装完毕 ;

Python 各个版本 , 添加的环境变量 ; 想要在命令行中调用哪个版本 , 就将哪个版本放在最上面 ;

更多推荐

【开发环境】Windows 中安装 Python 各个版本 ( 下载 Python 各版本 SDK | 安装 Python )