参考文章:http://blog.youkuaiyun.com/u013581118/article/details/52081987
在你的主目录(自己的权限目录)下,使用下面的命令:
export PATH=~/anaconda2/bin:$PATH
conda --v
- 1
- 2
- 3
- 4
如果结果是你的anaconda2的版本号,那就成功了!
————————————————————————————————————————————————
遇到这个问题的时候,
暂时性的解决方法是:
export PATH="/home/[your_name]/anaconda/bin:$PATH"
- 1
但是下一次重启之后,还是会出现这个问题,所以我们要acivate ~/.bash_profile
. ~/.bash_profile
#或者
source ~/.bash_profile
- 1
- 2
- 3
- 4
这样应该就能搞定了。