我最近安装了 ActivePython 2.7。所以我在/usr/local/bin/python中有一个符号链接,它指向 2.7 目录。麻烦的是,当我在命令行输入“python”时,它会在/usr/bin/python中启动 MacPython 2.6 。我不明白为什么符号链接不优先。/usr/local/bin在我的路径上。任何帮助,将不胜感激。
~ $ which python
/usr/bin/python
~ $ find /usr -iname python
/usr/bin/python
/usr/local/bin/python
路径如下所示:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/opt/PalmPDK/bin:/opt/PalmSDK/Current/bin:/usr/X11/bin