centos6.6升级python3.5&&pip源修改

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

1 分享

您可以选择一种方式赞助本站

支付宝扫码赞助

支付宝扫码赞助

日期: 2015-11-29分类: Sys Basics

标签: openstack

发表评论