How to run Conda?

后端 未结 30 1639
予麋鹿
予麋鹿 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:39

    you might want to try this:

    for anaconda 2 :

    export PATH=~/anaconda2/bin:$PATH
    

    for anaconda 3 :

    export PATH=~/anaconda3/bin:$PATH
    

    for anaconda 4 :

    Use the Anaconda Prompt

    and then

    conda --version
    

    to confirm that it worked. The export PATH=~/anaconda3/bin:$PATH works but stops when you exit the terminal in order change that you have to run sudo nano ~/.bashrc and then copy the path into the file and save it after that you activate the changes using source .bashrc.

    check with conda install anaconda-navigator if not installed follow the anaconda install instructions again

    follow along with this video https://youtu.be/Pr25JlaXhpc

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

    If you have installed Anaconda but are not able to load the correct versions of python and ipython, or if you see conda: command not found when trying to use conda, this may be an issue with your PATH environment variable. At the prompt, type:

    export PATH=~/anaconda/bin:$PATH
    

    For this example, it is assumed that Anaconda is installed in the default ~/anaconda location.

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

    This is the easiest solution for me :

    1. go to the user folder (/home/liedji in my case):
    2. run the command: ./anaconda3/bin/conda init
    3. close and restart the terminal
    4. and finally run conda --version to test if everything works

    Note: windows users should use ./anaconda3/Scripts/conda.exe init instead.

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

    To edit bashrc in Ubuntu

    $ /usr/bin/vim ~/.bashrc
    

    type PATH=$PATH:$HOME/anaconda3/bin Press Esc and :wq to save bashrc file and exit vim enter image description here

    then

    $ export PATH=~/anaconda3/bin:$PATH
    

    and type $ source ~/.bashrc Now to confirm the installation of conda type

    $ conda --version
    
    0 讨论(0)
  • 2020-11-22 09:41

    I am setting up a virtual machine running Ubuntu. I have anaconda 3 installed in the "Home" folder. When I typed "conda" into the terminal I was getting the error "conda: command not found" too.

    Typing the code below into the terminal worked for me...

    export PATH=$PATH:$HOME/anaconda3/bin
    

    to check it worked I typed:

    conda --version
    

    which responded with the version number.

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

    My env: macOS & anaconda3

    This works for me:

    $ nano ~/.bash_profile
    

    Add this:

    export PATH=~/anaconda3/bin:$PATH
    

    *The export path must match with the actual path of anaconda3 in the system.

    Exit out and run:

    $ source ~/.bash_profile
    

    Then try:

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