标签:oop http 查看 目录 usr lin 删除 python adl
[root@heweiwei heweiwei]# yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel
[root@heweiwei heweiwei]# wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz
[root@heweiwei heweiwei]# tar -zxvf Python-3.5.1.tgz
[root@heweiwei heweiwei]# mv Python-3.5.1 /usr/local
[root@heweiwei heweiwei]# ll /usr/bin | grep python
-rwxr-xr-x. 1 root root 20152 May 12 2016 abrt-action-analyze-python
-rwxr-xr-x. 2 root root 9032 Au 大专栏 安装python3.5g 18 2016 python
lrwxrwxrwx. 1 root root 6 Feb 27 16:05 python2 -> python
-rwxr-xr-x. 2 root root 9032 Aug 18 2016 python2.6
-rwxr-xr-x. 1 root root 1418 Aug 18 2016 python2.6-config
lrwxrwxrwx. 1 root root 16 Feb 28 17:21 python-config -> python2.6-config
[root@heweiwei heweiwei]# rm -rf /usr/bin/python
进入python目录
[root@heweiwei heweiwei]# cd /usr/local/Python-3.5.1/
[root@heweiwei Python-3.5.1]#
[root@heweiwei Python-3.5.1]# ./configure
[root@heweiwei Python-3.5.1]# make
[root@heweiwei Python-3.5.1]# make install
[root@heweiwei Python-3.5.1]# rm -rf /usr/bin/python
[root@heweiwei Python-3.5.1]# ln -s /usr/local/bin/python3.5 /usr/bin/python
[heweiwei@heweiwei ~]$ python -V
Python 3.5.1
标签:oop http 查看 目录 usr lin 删除 python adl
原文地址:https://www.cnblogs.com/lijianming180/p/12037961.html