Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Revert Ubuntu 14.04 to default python after uninstalling anaconda

I am new to ubuntu and the whole linux environment. I installed Anaconda on my system, but I would like to use the default python now for some reason. I removed the anaconda directory , but now the system can't find the python installation (obviously, but I dont know how to get to the right one). Can someone write out a step-by-step as to how I revert back to the original python (the default one ubuntu 14.04 comes with) ?

Thank you

like image 208
user962339 Avatar asked Feb 02 '15 17:02

user962339


1 Answers

In your .bashrc file you will have a line something like, Anaconda adds it during the installation process:

export PATH=$HOME/anaconda/bin:$PATH

You need to remove that line, do a source .bashrc and type python, that should open a shell using your system default python.

like image 98
Padraic Cunningham Avatar answered Nov 17 '22 08:11

Padraic Cunningham