I have anaconda distribution installed on my macbook to my local home directory /Users/simon/anaconda
When I open up iterm and type python
I see the default OSX install of python. I saw this thread here and implemented the fix mentioned: Mac using default Python despite Anaconda install
My .bash_profile
currently looks like this:
export PATH="$HOME/anaconda/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$PATH"
A few strange things happen:
- When I type
python
I still see the OSX python despite having changed my.bash_profile
- If I
source /Users/simon/.bash_profile
this actually fixes the problem. Usingpython
now brings up anaconda's python - When I quit iterm or restart my computer and try to load python again, it goes back to the OSX version.
.bash_profile
remains unchanged.
When I try all of the above using terminal everything works fine. The issues described above appear to be specific to iterm2 and I'm not sure why
How do I get my system to use anacondas python instead of the OSX version?