簡體   English   中英

Anaconda2安裝錯誤

[英]Anaconda2 Installation Error

我無意中刪除了〜/ anaconda2目錄,無法將其恢復。

嘗試重新安裝anaconda2:

./Anaconda2-5.0.1-Linux-x86.sh

經過一切后,我得到以下錯誤,我不明白...

PREFIX=/home/mike/anaconda2
installing: python-2.7.14-h41cc02d_21 ...
./Anaconda2-5.0.1-Linux-x86.sh: 358: ./Anaconda2-5.0.1-Linux-x86.sh: /home/mike/anaconda2/pkgs/python-2.7.14-h41cc02d_21/bin/python: not found

有任何想法嗎?

我實際上做了:

rm -rf ~/anaconda
rm -rf ~/.anaconda/navigator
rm -rf ~/.condarc ~/.conda ~/.continuum
nano ~/.bash_profile # remove the anaconda directory from your `PATH` env var
remove the shortcut from the applications folder

安全卸載。

但是仍然出現該錯誤。 我猜想它來自舊安裝的殘跡。

您的python路徑可能仍設置為Anaconda python。 嘗試重新啟動外殼程序或執行

source ~/.bash_profile

並檢查錯誤是否消失。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM