conda how do I activate environments

后端 未结 3 1409
再見小時候
再見小時候 2021-02-12 13:58

I am struggling to activate conda environments I have created on mac os x. Here are the environment that I have created.

$: conda env list
# conda environments:         


        
3条回答
  •  醉话见心
    2021-02-12 14:37

    Your path seems to be missing the root anaconda directory. when i echo $Path (where username is replacing my actual username) i have the following:

    /Users/username/anaconda/bin:/Users/username/anaconda/bin:/Users/username/anaconda/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

    in my bash_profile (or zshrc file etc...) I added:

    export PATH="/Users/username/anaconda/bin:$PATH"

    I use iterm2 with zsh, although this probably applies to more general cases.

    On OSX Sierra with Anaconda3 4.4.0 the path is now:

    export PATH="/anaconda/bin:$PATH"

提交回复
热议问题