conda how do I activate environments

后端 未结 3 1412
再見小時候
再見小時候 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"

    0 讨论(0)
  • 2021-02-12 14:42

    use the following

    conda create -n your_Env_Name
    

    Then activate it with:

    conda activate your_Env_Name
    
    0 讨论(0)
  • 2021-02-12 14:43

    I use miniconda2, so not sure if this will work but: open terminal & navigate to wherever you have conda installed. for me its /Users/username/miniconda 2

    and then do source activate env_name

    and then you can navigate back to your development directory

    0 讨论(0)
提交回复
热议问题