簡體   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