当前位置:网站首页>No module named yum
No module named yum
2022-07-28 05:21:00 【程序员阿伟】
问题原因
一般出现这种原因是因为yum与python的版本不对应,因为yum是python的模块,而你的系统中又存在多个版本的python,所以会对应不上
解决方法
所以修改yum的配置,修改文件: vim /usr/bin/yum
#修改python解释器版本
#!/usr/bin/python => #!/usr/bin/python2.7另外 也要修改urlgrabber-ext-down使用的解释器,与yum的python版本统一
vi /usr/libexec/urlgrabber-ext-down
#!/usr/bin/python => #!/usr/bin/python2.7边栏推荐
猜你喜欢
随机推荐
Prime_Series靶场从探测到提权
Continuous login problem
mysql多表查询
使用sourcetree推送仓库时 Failed to connect to www.google.com port 80: Timed out
Phoenix
出游不易,看景区用数字藏品刷存在感
撞脸ins? Mars数字藏品平台探索数字藏品轻社交
第八章 聚合函数
数字藏品成文旅产业新热点
cmd和npm基础命令
(php毕业设计)基于thinkphp5校园新闻发布管理系统获取
Books - smart investors
Add the corresponding subscripts of multiple arrays in the object
mysql视图,存储过程与存储函数
Model builder of ArcGIS
flex弹性盒子项目属性
Installation and use of sqoop
js-宏任务和微任务
JS simple publish and subscribe class
[interview question] anti shake and throttling









