在本章中,你将学习如何安装该语言最新版本的 Python 3。

在 Windows 上

从 Python 站点下载最新的 Windows (TM)安装程序,可以是 x86_64 或者 i686。像安装其他 Windows 软件一样安装它。

在 GNU/Linux 上

从发行版的存储库中安装最新的 Python。

对于 Fedora 23 和 Python3 以上版本,系统默认支持。

对于 Fedora 22及以下版本。

  1. [user@host]$ sudo yum install python3

对于 epel7 (RHEL7,CentOS7,SL7)。

  1. [user@host]$ sudo yum install python36

对于 Debian

  1. [user@host]$ sudo apt-get install python3