更新Python版本为系统默认版本,解决软件中心打不开的问题

1、首先看一下当前系统的python指向

william@william-VirtualBox:/usr/bin$ ll | grep python
-rwxr-xr-x  1 root   root      30284  4月 18  2012 dh_python2*
lrwxrwxrwx  1 root   root         23  1月  8 01:32 pdb2.7 -> ../lib/python2.7/pdb.py*
lrwxrwxrwx  1 root   root          7  4月  5 17:09 python -> python2*
lrwxrwxrwx  1 root   root          9  1月  8 01:32 python2 -> python2.7*
-rwxr-xr-x  1 root   root    2799288  8月  1  2012 python2.7*
lrwxrwxrwx  1 root   root         29  1月  8 01:32 pyversions -> ../share/python/pyversions.py*

 我软件中心打不开 是因为我自己替换了Python的版本。我系统里装了python2.7.3 和python3.3,系统默认的版本是2.7。上图看到的是我已经修改过了的,如果没有指向系统默认的2.7版本,需要修改。

 

2、修改python软链接的指向

sudo rm -rf ./python

 

sudo ln -s python2 ./python

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值