简体   繁体   中英

Anaconda2 Installation Error

I deleted the ~/anaconda2 directory by accident and couldn't get it back.

Trying to reinstall 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. Try restarting your shell or executing

source ~/.bash_profile

and check if error goes away.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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