python2.7升级到python3.6.4 文章链接 :  https://zhuanlan.zhihu.com/p/33660059

 

我在服务器上。把linux默认安装的python2.7 升级为 python 3.6.4 之后。。yum就开始报错了

 

解决办法: 

vim /usr/libexec/urlgrabber-ext-down
将/usr/bin/python
改为
/usr/bin/python2.7

vim /usr/bin/yum-config-manager
#!/usr/bin/python
换成
#!/usr/bin/python2.7

 

相关文章:

  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
  • 2021-05-27
  • 2021-10-04
猜你喜欢
  • 2021-07-04
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-11
  • 2022-12-23
相关资源
相似解决方案