I have Anaconda 1.9.7 installed on Mac 10.14.16. I encountered a strange behaviour when a new env is installed. which python
show the correct python path, but the site-packages are linked to another environment, so when I use pip install
it tries to put the package into another environment's site-package.
I have no idea why this happens. Not sure if I accidentally changed the bash_profile.
This code looks ok:
# added by Anaconda3 2019.07 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
\eval "$__conda_setup"
else
if [ -f "/anaconda3/etc/profile.d/conda.sh" ]; then
. "/anaconda3/etc/profile.d/conda.sh"
CONDA_CHANGEPS1=false conda activate base
else
\export PATH="/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda init <<<
Any idea how I can fix this issue?