小编hxi*_*xin的帖子

将符号链接“python”更改为“python3”会导致问题

我的 Ubuntu 12.04 64 位(默认情况下?)上安装了 Python 2.7.3 和 3.2.3。当我输入“python”时,我想要 python 3.2 而不是 2.7。

将符号链接“python”更改为链接到 python3 似乎会导致大问题。为什么会这样,有没有办法做到这一点?

lrwxrwxrwx 1 root root       7 Sep 28 19:15 python -> python2
lrwxrwxrwx 1 root root       9 Jun 18 13:26 python2 -> python2.7
-rwxr-xr-x 1 root root 2993592 Apr 10 02:46 python2.7
-rwxr-xr-x 1 root root    1652 Apr 10 02:46 python2.7-config
lrwxrwxrwx 1 root root      16 Jun 18 13:26 python2-config -> python2.7-config
lrwxrwxrwx 1 root root       9 Apr 10 17:12 python3 -> python3.2
lrwxrwxrwx 1 …
Run Code Online (Sandbox Code Playgroud)

symbolic-link 12.04 python3

7
推荐指数
1
解决办法
3万
查看次数

标签 统计

12.04 ×1

python3 ×1

symbolic-link ×1