How to run Conda?

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

    It turns out that I had not set the path.

    To do so, I first had to edit .bash_profile (I downloaded it to my local desktop to do that, I do not know how to text edit a file from linux)

    Then add this to .bash_profile:

    PATH=$PATH:$HOME/anaconda/bin
    
    0 讨论(0)
  • 2020-11-22 09:29

    Edit ~/.bash_profile, add this to it.

    PATH=$PATH:$HOME/anaconda/bin
    

    then run

    source ~/.bash_profile
    

    Hope can help you.

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

    I'm on High Sierra MAC OS and just installed Anaconda3 via HomeBrew command. I had issue with running :

     conda
    

    It'd also give me:

    -bash: conda: command not found
    

    I tried running:

    export PATH=~/anaconda3/bin:$PATH
    

    but it needs ENTIRE path. so here are the correct steps:

    $ nano ~/.bash_profile
    

    Now export the ENTIRE path, in my case it was:

    export PATH=/usr/local/anaconda3/bin:$PATH
    

    Exit out and run:

    $ source ~/.bash_profile
    

    Then try:

    $ conda
    

    it'll output:

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

    In my case conda Path was properly set (in .bashrc) by the conda installation bash. But to make it works I had to give executable file permissions to files in bin sub folder with chmod +x *.

    My system info:

    conda 4.2.9

    Operating System: Debian GNU/Linux 8 (jessie)

    Kernel: Linux 3.16.0-4-amd64

    Architecture: x86-64

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

    If you have installed anaconda, but if you are not able to execute conda command from terminal, it means the path is not probably set, try :

    export PATH=~/anaconda/bin:$PATH
    

    See this link.

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

    1. Check where you have installed Anaconda. In my case it looks like /home/nour/anaconda3/bin

    1. Open your .bashrc file. For example $ gedit .bashrc

    3. Add this export PATH = /home/nour/anaconda3/bin:$PATH line at the end of the file and save.

    1. Reopen the terminal. Type conda --version

    NOTE: Make sure path in line no. 1 and line no. 3 must be same. In my case /home/nour/anaconda3/bin .

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