I follow those steps and works for me!
Installing Anaconda #
At the time of writing this article, the latest stable version of Anaconda is version 2020.02. Before downloading the installer script, visit the Downloads page and check if there is a new version of Anaconda for Python 3 available for download.
Complete the following steps to install Anaconda on Ubuntu 20.04:
1- Anaconda Navigator is a QT-based GUI. If you are installing Anaconda on a desktop machine and you want to use the GUI application, install the following packages. Otherwise, skip this step.
$sudo apt install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6
2- Download the Anaconda installation script with your web browser or get :
$wget -P /tmp https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh
The download may take some time depending on your connection speed.
3- This step is optional, but it is recommended to verify the data integrity of the script.
Use the sha256sum command to display the script checksum:
The output should look like this:
Run the script to start the installation process:
You should see an output like the following:
Welcome to Anaconda3 2020.02
In order to continue the installation process, please review the license
Please, press ENTER to continue
Press ENTER to continue. To scroll through the license, use the ENTER key. Once you’re done reviewing the license, you’ll be asked to approve the license terms:
Do you approve the license terms? [yes|no]
Type yes to accept the license, and you’ll be prompted to choose the installation location:
Anaconda3 will now be installed into this location:
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
The default location should be fine for most users. Press ENTER to confirm the location.
The installation may take some time, and once completed, the script will ask you whether you want to run conda init. Type yes.
Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]
This will add the command-line tool conda to your system’s PATH .
To activate the Anaconda installation, you can either close and re-open your shell or load the new PATH environment variable into the current shell session by typing:
To verify the installation type conda in your terminal.
That’s it! You have successfully installed Anaconda on your Ubuntu machine, and you can start using it.
Updating Anaconda #
Updating the Anaconda is a pretty straight forward process. Open your terminal and enter:
conda update --all
for more information and more clear explanation go to the source link below