Loading... 上篇我更换Python3.11.2为默认版本,但是yum是基于Python2编译的,所以要修改一下 ` /usr/bin/yum`和`/usr/libexec/urlgrabber-ext-down`这俩 ```shell sudo nano /usr/bin/yum ``` 将 ```shell #!/usr/bin/python ``` 改成 ```shell #!/usr/bin/python2 ``` `/usr/libexec/urlgrabber-ext-down`同理 参考: <div class="preview"> <div class="post-inser post box-shadow-wrap-normal"> <a href="https://www.cnblogs.com/gaoBlog/p/12262716.html" target="_blank" class="post_inser_a no-external-link no-underline-link"> <div class="inner-image bg" style="background-image: url(https://blog.acats.space/hp.svg);background-size: cover;"></div> <div class="inner-content" > <p class="inser-title">解决安装python3后yum不能使用情况</p> <div class="inster-summary text-muted"> 豁然高 </div> </div> </a> <!-- .inner-content #####--> </div> <!-- .post-inser ####--> </div> 最后修改:2023 年 02 月 24 日 © 允许规范转载 赞 1 如果觉得我的文章对你有用,请随意赞赏
4 条评论
hhhh
tttt
|´・ω・)ノ
test