[root@localhost Python-3.7.0]#make && make install
安装完成没有提示错误便安装成功了
7
、建立软连接
[root@localhost Python-3.7.0]#ln -s /usr/local/python3/bin/python3.7 /usr/bin/python3
[root@localhost Python-3.7.0]#ln -s /usr/local/python3/bin/pip3.7 /usr/bin/pip3
8
、测试一下
python3
是否可以用
[root@localhost Python-3.7.0]#cd
[root@localhost ~]# python3
Python 3.7.0 (default, May 16 2019, 02:16:59)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()
[root@localhost ~]#