Use Default Python Rather than Anaconda Path

on

Anaconda adds the path to  .bashrc so it is found first, you can add the path to your default python to .bashrc or remove the path to anaconda if you don’t want to use it.

You can also use the full path /usr/bin/python in bash to use the default python interpreter.

If you leave your .bashrc file as is, any command you run using python will use the anaconda interpreter, if you want you could also use an alias for each interpreter.

You will see something like export PATH=$HOME/anaconda/bin:$PATH in your .bashrc file.

So basically if you want to use anaconda as your main everyday interpreter use the full path to your default python or create an alias, if you want it the other way around remove the export PATH=.... from .bashrc and use full path to anaconda python interpreter.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s