Dubai Silicon Oasis, Dubai, UAE

Python environment

Forcing Anaconda Browser to use existing Python Environment

One of the problems I recently faced when I started exploring Anaconda Navigator, was that it comes with its own Python environment.

I was using Sublime Text and had my Python environment stable with all needed libraries. Once Anaconda is installed, all my old projects on Sublime reported missing libraries.

I found that the common practice is to force Sublime to use Anaconda environment, which was exactly the opposite of what I needed. I needed Anaconda to use previously existing Python environment.

To do so, I had to comment all Anaconda added lines in .bash_profile file. Open it in the terminal via (open -e .bash_profile) and comment all Anaconda lines and viola.

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/Patchivic/opt/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
__conda_setup="$('/Users/Patchivic/opt/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
if [ -f "/Users/Patchivic/opt/anaconda3/etc/profile.d/" ]; then
. "/Users/Patchivic/opt/anaconda3/etc/profile.d/"
export PATH="/Users/Patchivic/opt/anaconda3/bin:$PATH"
unset __conda_setup
# <<< conda initialize <<<
view raw Anaconda hosted with ❤ by GitHub
Privacy Preferences
When you visit our website, it may store information through your browser from specific services, usually in form of cookies. Here you can change your privacy preferences. Please note that blocking some types of cookies may impact your experience on our website and the services we offer.