When I run the command which python
, I get
/home/user/anaconda2/bin/python
but after running python it shows
Python 2.7.6 (default, Oct 26 2016, 20:30:19)
[GCC 4.8.4] on linux2
P.S- I had anaconda installed and had been using it for a long time, but recently I tried to switch to python3 by using alias command. Since then I am not able to get back to anaconda, even editing the ~/.bashrc
file does not get me back to anaconda.
which python
depends on established $PATH variable. It's better to typecommand -v python
to know where it's installed. – Redbob Oct 13 '17 at 18:01update -alternatives
may do it. Typeupdate-alternatives --display python
and tell me the result. – Redbob Oct 14 '17 at 10:43