I have a strange problem with ipython path. When I open a terminal and type
which ipython
, I get
"/Users/test/anaconda3/bin/ipython"
which messes up with some of my definitions. Regardless, when I run source .bash_profile
it changes the path to "/usr/local/bin/ipython"
.
Basically, everytime I open a tab, I have to run source .bash_profile
for the correct path.
These are the contents of my bash file and I have not seen a problem like this before.
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
# Finished adapting your PATH environment variable for use with MacPorts.
export PATH="/usr/local/bin:$PATH"
# added by Anaconda3 2019.07 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/Users/test/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
\eval "$__conda_setup"
else
if [ -f "/Users/test/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/test/anaconda3/etc/profile.d/conda.sh"
CONDA_CHANGEPS1=false conda activate base
else
\export PATH="/Users/test/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda init <<<
PYTHONPATH="/Users/test/Documents/heasoft-6.25/x86_64-apple-darwin18.2.0/lib/python"
PYTHONPATH="/Users/test/anaconda3/lib/python3.7:$PYTHONPATH"