2. 在 Unix 平台使用 Python

2.1. 获取并安装最新版本的 Python

2.1.1. 在 Linux

Python comes preinstalled on most Linux distributions, and is available as a package on all others. However there are certain features you might want to use that are not available on your distro’s package. You can compile the latest version of Python from source.

In the event that the latest version of Python doesn’t come preinstalled and isn’t in the repositories as well, you can make packages for your own distro. Have a look at the following links:

2.1.2. 在 FreeBSD 和 OpenBSD

  • FreeBSD 用户,要添加包使用:

    pkg install python3