Python "command not found" 在尝试新的移动到新的 python 版本之后

Python "command not found" after trying new to move to new python version

我运行命令

ln -sf /usr/bin/python2.6 /usr/local/bin/python

如这个堆栈溢出问题: Change default Python version from 2.4 to 2.6

现在当在命令行中输入 python 时,我得到 "No such file or directory" 我怎样才能让python再次正常工作?

追问:我刚刚安装了python2.7。我怎样才能使它成为默认值 python?我是运行Linux。

运行 命令

export PATH=/usr/local/bin:$PATH

解决了