linux切换python2和python3。解决错误File "/usr/bin/yum", line 30 except KeyboardInterrupt, e:

找到安装的python3路径

/software/python37/bin

 

 备份之前的软连接

mv /usr/bin/python /usr/bin/python.bak

建立新的软连接 ln -s /software/python37/bin/python37 /usr/bin/python

下图是切换回到了原来的python2.7.5

 

 备份

 

posted @ 2022-04-26 11:04  lidingyi  阅读(91)  评论(0编辑  收藏  举报