To ensure Python 3 is available for use, you should have this in your .bashrc file: export PATH=/usr/local/Anaconda3/bin:$PATH # above is python 3 export PATH=/usr/local/Anaconda/bin:$PATH # above is python 2.7 source activate astroconda