JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

File "/usr/bin/yum", line 30 except KeyboardInterrupt, e:

发布时间 2023-05-30 10:34:52作者: VipSoft
[root@localhost pdserving]# yum install -y tree
  File "/usr/bin/yum", line 30
    except KeyboardInterrupt, e:
                            ^

原因。python 重新安装过了。

# 将 第一行的路径改正确就可以了。
[root@localhost pdserving]# vi /usr/bin/yum

#!/usr/bin/python2.7
import sys
try:
    import yum
except ImportError:
    print >> sys.stderr, """\

image

    本栏目推荐文章
  • IDEA项目名称后面出现中括号,模块Modules的名子和文件夹名称不同,可以右键修改名称也可以在File->Project Structure 修改Modules的Name(快捷键ctrl+Shift+Alt+s)
  • mysql发生连接异常Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
  • 【解决方案】Error running,Command line is too long
  • Pycharm读excel文件报错xlrd.biffh.XLRDError: Excel xlsx file not supported
  • 【Leetcode1949. 坚定的友谊】使用MySQL在无向图中寻找{"CompleteTripartite", {1, 1, 3}}这个pattern
  • Python中出现"No module named 'requests'"的图文解决办法
  • fish和pacman:“error: Unable to read input file: 是一个目录”报错的处理
  • 在Windows上出现"localhost拒绝连接”的问题
  • "nginx.conf" E514 : write error (file system full?)
  • redis报错MISCONF Errors writing to the AOF file: No space left on device,磁盘满无法写入数据报错
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们