How to install Anaconda

Tips

For those of you who wants to install ROS and Anaconda at the same time, you need to install ROS first

Step-by-step process

Step1: go to the anaconda website

Step2: Navigate to your Downloads folder and type the follow command:

bash Anaconda3-2020.11-Linux-x86_64.sh

Step3: Now when you try to type the following command to launch anaconda:

anaconda-navigator

You will get response “command not found”

Use the following command to add the anaconda3 paht to environment:

export PATH=/home/yourusername/anaconda3/bin:$PATH

Now you can manually launch anaconda-navigator from your terminal

Step4: Create Anaconda Navigator shortcut/icon.

You can check the website. I will put the simplified steps here:

  • Use your terminal and go to your Desktop and create

    cd Desktop
    gedit anaconda-navigator.desktop
    
  • In your text editor and enter following contents

    Replace zhz03 to your username

    #!/usr/bin/env xdg-open
    [Desktop Entry]
    Name=Anaconda
    Version=2.0
    Type=Application
    Exec=/home/zhaoliang/anaconda3/bin/anaconda-navigator
    Icon=/home/zhaoliang/anaconda3/lib/python3.8/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png
    Comment=Open Anaconda Navigator
    Terminal=false
    
  • Copy this file to your application folder

    cp anaconda-navigator.desktop ~/.local/share/applications/
    
  • Now you’ll see your Anaconda navigator on your application menu/list

Step 5; Deactivate conda base environment

Since the conda will automatically launch the base environment, to deactivate it, using the following code:

conda config --set auto_activate_base false