cloud36
cloud36

Reputation: 1066

Anaconda on Mac

I'm new to Mac, and I recently installed Anaconda on my laptop. When I installed Anaconda on my Windows laptop, my previous version on Python remained the default version. However, when I install Anaconda on my Mac. It seems to have erased my previous version. Or at least when I click on the old version it says "Classic Environment no longer supported". Additionally, when invoking python from the terminal, it uses the version downloaded with Anaconda.

Now, there are quite a few python modules/packages that Anaconda doesn't support. So, I'd like to set the default version of python to the original version that came with the Mac. How would I go about accomplishing that?

Upvotes: 3

Views: 13498

Answers (2)

ilciavo
ilciavo

Reputation: 3484

one way is to comment out the line in your file ~./profile like this:

# added by Anaconda 2.0.0 installer
# export PATH="/Users/username/anaconda/bin:$PATH"
alias pythonA='/Users/username/anaconda/bin/python'
alias conda='/Users/username/anaconda/bin/conda'
alias spyder='/Users/username/anaconda/bin/spyder'
alias pynote='/Users/username/anaconda/bin/ipython_mac.command ; exit;'

After that you need to update your path by running from your terminal:

source ~/.profile

With this you can call your Anaconda python as pythonA or install packages using conda install package without issues.

Upvotes: 5

asmeurer
asmeurer

Reputation: 91450

The installer added a line like

# added by Anaconda 1.9.0 installer
export PATH="/Users/you/anaconda/bin:$PATH" 

to your .profile. That is what makes the Anaconda Python the default in the terminal.

Upvotes: 7

Related Questions