【发布时间】:2016-04-22 03:57:11
【问题描述】:
希望有人可以帮助我。我遵循了一些关于为 python 开发设置新机器的指南。 (one) (two)
我几乎关注了所有内容,但我对 .bash_profile 的更改感到非常困惑
当我在 .bash_profile 中注释掉 export PATH=/usr/local/bin:$PATH 并在终端中输入 which python 时,我看到了我的期望。
which python
/usr/local/bin/python
python
Python 2.7.11 (default, Jan 22 2016, 08:29:18)
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
bash_profile 中发生了什么,我将所有内容注释掉,保存并运行命令,为什么没有关系?
更重要的是,我如何获得默认安装的 python 并确保它仍然存在并且不受影响?我理解上面的版本是 Homebrew 安装的 python 是否正确?
【问题讨论】:
标签: python macos homebrew .bash-profile