TeachingDataScience / data-science-course

Data Science Course Materials
11 stars 16 forks source link

In Linux/Unix, how do I make Anaconda Python become my default Python #2

Closed dacosta-rafael closed 9 years ago

arahuja commented 10 years ago

This can be done by simply prepending the location of the ananconda install to the PATH environment variable

Usually Anaconda is installed in the users home dir so the following should work:

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

You can also add this to $HOME/.bash_profile so this is setup by default (this is what Anaconda does on install if you anser 'yes' to making it your default)

datadave commented 9 years ago

Thanks Arun!

Here's a great blog post with more on what you can do with your bash_profile.

For deeper bashing, this wiki is a great resource.