程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

The problem that yum is unavailable after python upgrade

編輯:Python


1. Centos 7.9 comes with python2.7 version, upgrade to 3.6 version
which yum=> Find the yum path
vi /usr/bin/yum
Modified to:

#!/usr/bin/python
  • 1.

Modify to the system's python path​ ​​​

#!/usr/bin/python2.7
  • 1.

The system comes with yum which is 2.7 test yum install wget

2. Also modify /usr/libexec/urlgrabber-ext-down to

#!/usr/bin/python2.7
  • 1.

[root​ ​@db01​​ ~]# vi /usr/libexec/urlgrabber-ext-down

Copyright notice: This article is an original article by the blogger and may not be reproduced without the blogger's permission.

Linux


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved