繁体   English   中英

不是安装Anaconda时应该的版本

[英]Not the version that should be when installing Anaconda

我在我的Ubuntu上安装了Anaconda 4.3.1,Python 3.6。 现在,当我运行Python时,它说版本是2.7而不是3.6,因为我想要它。 除了版本之外,没有提到Anaconda。 我很确定我以正确的方式安装了Anaconda。 我能做什么?

尝试在终端中使用python3而不是python 这应该启动python 3.X解释器。

请注意,像pip这样的其他脚本也有python 3.X的等效pip3

检查你的系统正在使用哪个python:

which python

如果它显示系统python你需要在〜/ .bashrc文件中导出Anaconda的路径:

export PATH="/home/username/anaconda3/bin:$PATH"

保存文件后,您可以激活PATH:

source ~/.bashrc

这将在您启动新终端时始终使用Anaconda。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM