OSX Anaconda default python -
i have anaconda distribution installed on macbook local home directory /users/simon/anaconda
when open iterm , type python see default osx install of python. saw thread here , implemented fix mentioned: mac using default python despite anaconda install
my .bash_profile looks this:
export path="$home/anaconda/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$path" a few strange things happen:
- when type
pythonstill see osx python despite having changed.bash_profile - if
source /users/simon/.bash_profilefixes problem. usingpythonbrings anaconda's python - when quit iterm or restart computer , try load python again, goes osx version.
.bash_profileremains unchanged.
when try of above using terminal works fine. issues described above appear specific iterm2 , i'm not sure why
how system use anacondas python instead of osx version?
it seems $path redefined somewhere else in configuration. doesn't cause issue if know in order loaded , keep track of what's going on.
i recommend bit of reading understand more load order.
Comments
Post a Comment