How to run Conda?

后端 未结 30 1629
予麋鹿
予麋鹿 2020-11-22 08:56

I installed Anaconda and can run Python, so I assume that I installed it correctly. Following this introductory documentation, I am trying to install Python v3.3, so I am co

相关标签:
30条回答
  • 2020-11-22 09:47

    Answer for

    • Anaconda3 5.2.0 installer
    • macOS HighSierra
    • ZSH

    1. Unfortunately, the installer puts the PATH definition only into .bash_profile, but not the .zshrc config.
    2. Contrary to the given answers, it doesn't (necessarily) install in ~/anaconda3/, but instead in /anaconda3/.

    The PATHdefintion in .zshrc must therefore be this:

    ...
    # Anaconda3
    export PATH="/anaconda3/bin:$PATH"
    ...
    
    0 讨论(0)
  • 2020-11-22 09:48

    I also was facing the same issue ,this might be the simplest possible solution

    source anaconda/bin/activate
    

    for anaconda2 use

    source anaconda2/bin/activate
    

    depending on the name of the directory , then execute your command i.e. conda --create

    0 讨论(0)
  • 2020-11-22 09:49

    If you have installed Anaconda and have definitely said yes to the:

    Do you wish the installer to prepend the Anaconda install location to PATH in your /home/name/.bashrc ? [yes¦no]
    

    question then you maybe just need to restart your terminal window. The change won't take effect until you either (1) close and reopen the current window or (2) just open and start working in a new window

    Basically, open a new console window and see if it works now.

    0 讨论(0)
  • 2020-11-22 09:49

    Run

    cat ~/.bash_profile
    

    to check if anaconda is there. If not you should add its path there. If conda is there copy the entire row that you see the Anaconda there from "export" to the end of line. like this:

    export PATH=~/anaconda3/bin:$PATH
    

    Run this in your terminal. Then run

    conda --version
    

    to see if it is exported and running!

    0 讨论(0)
  • 2020-11-22 09:49

    Temporary solution:

    $anaconda/bin/conda create -n py33 python=3.3 anaconda
    
    0 讨论(0)
  • 2020-11-22 09:51

    You need to put Anaconda.sh to your /home/, then run it to install. After that, you can runexport PATH=~/anaconda3/bin:$PATH . Remark: do not run Anaconda.sh in download/ directily!!!!!

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