简体   繁体   English

Anaconda2安装错误

[英]Anaconda2 Installation Error

I deleted the ~/anaconda2 directory by accident and couldn't get it back. 我无意中删除了〜/ anaconda2目录,无法将其恢复。

Trying to reinstall anaconda2: 尝试重新安装anaconda2:

./Anaconda2-5.0.1-Linux-x86.sh

After going through everything i get the following error which I don't understand... 经过一切后,我得到以下错误,我不明白...

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

Any ideas? 有任何想法吗?

I actually did : 我实际上做了:

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

to safely uninstall. 安全卸载。

But still getting that error. 但是仍然出现该错误。 I'm guessing its remnents from the old installation. 我猜想它来自旧安装的残迹。

Your python path is probably still set to Anaconda python. 您的python路径可能仍设置为Anaconda python。 Try restarting your shell or executing 尝试重新启动外壳程序或执行

source ~/.bash_profile

and check if error goes away. 并检查错误是否消失。

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

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