CentOS6.5yum安装Python3⛱️
1. 在 CentOS 6.5 上通过 Webtatic 仓库安装Python3
[root@localhost ~]# rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm [root@localhost ~]# yum -y install python34u python34u-devel
2. 安装pip
[root@localhost ~]# yum -y install python34-pip
3. 检查python及pip版本
[root@localhost ~]# pip3 --version pip 7.1.0 from /usr/lib/python3.4/site-packages (python 3.4)
[root@localhost ~]# ll python* -rwxr-xr-x 2 root root 9032 Jun 20 2019 python lrwxrwxrwx 1 root root 6 Nov 15 2020 python2 -> python -rwxr-xr-x 2 root root 9032 Jun 20 2019 python2.6 lrwxrwxrwx 1 root root 9 Jul 19 10:38 python3 -> python3.4 -rwxr-xr-x 2 root root 6088 Oct 5 2019 python3.4 lrwxrwxrwx 1 root root 17 Jul 19 10:38 python3.4-config -> python3.4m-config -rwxr-xr-x 2 root root 6088 Oct 5 2019 python3.4m -rwxr-xr-x 1 root root 173 Oct 5 2019 python3.4m-config -rwxr-xr-x 1 root root 3285 Oct 5 2019 python3.4m-x86_64-config lrwxrwxrwx 1 root root 16 Jul 19 10:38 python3-config -> python3.4-config