【发布时间】:2017-12-18 01:27:03
【问题描述】:
我想使用 Anaconda python 而不是 MacOS 上默认安装的。当我使用时:
$ which python
/usr/bin/python
但是,我的.bash_profile 和.bashrc 有以下行:
export PATH=~/anaconda3/bin:$PATH
如何将 Anaconda python 设置为默认值?
【问题讨论】:
我想使用 Anaconda python 而不是 MacOS 上默认安装的。当我使用时:
$ which python
/usr/bin/python
但是,我的.bash_profile 和.bashrc 有以下行:
export PATH=~/anaconda3/bin:$PATH
如何将 Anaconda python 设置为默认值?
【问题讨论】:
我的 Anaconda3 安装已经在我的 .bash_profile 中设置了(由注释指示)。尝试使用绝对路径(并将{username} 替换为您的实际用户名)并添加如下引号:
export PATH="/Users/{username}/anaconda3/bin:$PATH"
【讨论】: