salhin
salhin

Reputation: 2652

Use Anaconda python instead of default mac python

I want to use Anaconda python instead of the one installed by default on MacOS. When I use:

$ which python
/usr/bin/python

However, my .bash_profile and .bashrc have the following line:

export PATH=~/anaconda3/bin:$PATH

How do set Anaconda python as default?

Upvotes: 1

Views: 2897

Answers (1)

tdube
tdube

Reputation: 2553

My Anaconda3 installation already set that in my .bash_profile (indicated by comment). Try using the absolute path (and replacing {username} with your actual username) and adding quotes like this:

export PATH="/Users/{username}/anaconda3/bin:$PATH"

Upvotes: 3

Related Questions