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:
另请参阅
- https://www.debian.org/doc/manuals/maint-guide/first.en.html
-
对于 Debian 用户
- https://en.opensuse.org/Portal:Packaging
-
对于 OpenSuse 用户
- https://docs.fedoraproject.org/en-US/package-maintainers/Packaging_Tutorial_GNU_Hello/
-
对于 Fedora 用户
- https://slackbook.org/html/package-management-making-packages.html
-
对于 Slackware 用户
2.1.2. 在 FreeBSD 和 OpenBSD ¶
-
FreeBSD 用户,要添加包使用:
pkg install python3