centos6.6升级python3.5
[root@node1 src]# wget https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz
[root@node1 src]# tar xf Python-3.5.0.tgz
[root@node1 src]# cd Python-3.5.0
[root@node1 Python-3.5.0]# ./configure
[root@node1 Python-3.5.0]# make && make install
[root@node1 Python-3.5.0]# mv /usr/bin/python2 /usr/bin/python2.6
[root@node1 Python-3.5.0]# ln -s /usr/local/bin/python3.5 /usr/bin/python
[root@node1 Python-3.5.0]# python -V
Python 3.5.0
[root@node1 Python-3.5.0]# vim /usr/bin/yum
#!/usr/bin/python2.6
pip源修改:
[root@node1 ~]# mkdir .pip
[root@node1 ~]# vim .pip/pip.conf
[global]
index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com