But!
Somehow, the folks at continuum analytics decided that using conda should override the default python environment (the system-wide python installation). There are some recommendations, but AFAIK there is no official solution for the problem.
Here is my solution to keep the system-wide python installation as my default environment and start to use conda only when I want to:
~/bin/unconda
export PATH=`echo ":${PATH}:" | sed -e "s:\:$HOME/miniconda3/bin\::\::g" -e "s/^://" -e "s/:$//"`
Got the trick from here. Thanks Natsuki!
~/bin/reconda
export PATH="$HOME/miniconda3/bin:$PATH"
Now just add $HOME/bin to your path if it's not already there and you are ready to go.
Don't forget to remove the line in your .bashrc that add miniconda to the path in the first place.
No comments:
Post a Comment