【发布时间】:2014-03-15 21:25:49
【问题描述】:
我在不使用自制软件的情况下安装 python 2.7.6 时出错,现在我的 python 设置为 /usr/local/bin/python 中的 python(即 2.7.6)。
我想摆脱python 2.7.6并将我的默认python更改为/usr/bin/python中的标准系统python 2.7.5。
我该怎么做?
【问题讨论】:
我在不使用自制软件的情况下安装 python 2.7.6 时出错,现在我的 python 设置为 /usr/local/bin/python 中的 python(即 2.7.6)。
我想摆脱python 2.7.6并将我的默认python更改为/usr/bin/python中的标准系统python 2.7.5。
我该怎么做?
【问题讨论】:
你有没有看this?我假设你正在使用bash shell。所以你可以把
PYTHONPATH="$PYTHONPATH:/usr/bin/python"
在您的~/.bash_profile 中。对我来说,我使用zsh。所以我把它放在~/.zshrc。
【讨论】: