upgrade you python to 3.5.2 on CentOS 7 and fix the yum

CentOS7use the python2.7.5 as default, you should pay acctention to two thing when upgrading the  python to 3.5.2

  1. update the python link in the default sysytem
  2. fix the yum

 

A. install the  python 3.5.2

B. install the python

C.  you will see this as below

D. update the python link in the default sysytem

move and keep the old one for yum

make link to the system default python path

you will see this below if success change defaule python to 3.5.2

E. you will find that yum is broken

you can fix it by follow this:

vim /usr/bin/yum

change:

to

F. All done

 

未经允许不得转载:VPS啦 » upgrade you python to 3.5.2 on CentOS 7 and fix the yum

赞 (0) 打赏

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏