EPEL 软件包位于 CentOS 的 Extra 源中,已经默认启用,故我们只需运行如下命令即可:
1 2
# yum install epel-release
检查可用的 python 3 版本:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
# yum --disablerepo="*" --enablerepo="epel" info python34 Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * epel: ewr.edge.kernel.org Available Packages Name : python34 Arch : x86_64 Version : 3.4.5 Release : 4.el6 Size : 50 k Repo : epel Summary : Version 3 of the Python programming language aka Python 3000 URL : http://www.python.org/ License : Python Description : Python 3 is a new version of the language that is incompatible with the 2.x : line of releases. The language is mostly the same, but many details, especially : how built-in objects like dictionaries and strings work, have changed : considerably, and a lot of deprecated features have finally been removed.
# curl -O https://bootstrap.pypa.io/get-pip.py % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1603k 100 1603k 0 0 2633k 0 --:--:-- --:--:-- --:--:-- 4816k
EPEL 软件包位于 CentOS 的 Extra 源中,已经默认启用,故我们只需运行如下命令即可:
1 2
# yum install epel-release
下载 IUS 社区源安装脚本:
1 2 3 4 5
# curl 'https://setup.ius.io/' -o setup-ius.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1914 100 1914 0 0 6563 0 --:--:-- --:--:-- --:--:-- 133k
# yum --enablerepo=ius info python36u Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * epel: ewr.edge.kernel.org * ius: mirror.team-cymru.com * remi-safe: mirror.team-cymru.com Available Packages Name : python36u Arch : x86_64 Version : 3.6.5 Release : 1.ius.centos6 Size : 55 k Repo : ius Summary : Interpreter of the Python programming language URL : https://www.python.org/ License : Python Description : Python is an accessible, high-level, dynamically typed, interpreted programming : language, designed with an emphasis on code readability. : It includes an extensive standard library, and has a vast ecosystem of : third-party libraries. : : The python36u package provides the "python3.6" executable: the reference : interpreter for the Python language, version 3. : The majority of its standard library is provided in the python36u-libs package, : which should be installed automatically along with python36u. : The remaining parts of the Python standard library are broken out into the : python36u-tkinter and python36u-test packages, which may need to be installed : separately. : : Documentation for Python is provided in the python36u-docs package. : : Packages containing additional libraries for Python are generally named with : the "python36u-" prefix.