Get the simple steps to install Anaconda Navigator on Ubuntu 22.04 LTS Jammy JellyFish to start developing your Python-based applications.
Anaconda is package management with a graphical navigator for the programming languages Python and R, which supports data science, data analysis, and machine learning.
It is designed for scientific work and the analysis of (large) amounts of data. Anaconda has everything you need, including the Python interpreter. This makes it independent of the underlying system. Anaconda itself does not contain Python modules that could not be installed in other ways such as package management or pip.
The advantage of Anaconda is that you do not have to worry about resolving the sometimes complex dependencies yourself. In addition, Anaconda has its package manager called Conda, which keeps all packages within the distribution up-to-date. It facilitates the installation and management of libraries and development environments that support working with data analysis and machine learning under Python and R. In total, numerous packages are available, including Jupyter Notebook, Spyder, NumPy, and TensorFlow.
Anaconda is available for Microsoft Windows, macOS, and Linux in the versions Individual, Commercial, Team, and Enterprise. The Individual Edition is open source software and free of charge as freeware, so that, for example, private users can learn how to handle data analysis. The paid editions Commercial, Team, and Enterprise offer an extended range of functions for commercial use and use in the company.
- Steps to Install Anaconda Navigator on Ubuntu 22.04 LTS
- 1. Download Anaconda Linux Installer
- 2. Install Anaconda Python on Ubuntu 22.04
- 3. Add Environment variable for Anaconda
- 4. Reload Shell
- 5. How to use Conda
- 6. How to deactivate the Conda base environment
- 7. Anaconda Navigator on Ubuntu 22.04
- 8. Create Desktop and Launcher shortcut
- How to uninstall or remove
The steps given here for installing Anaconda Python GUI can be used for other Ubuntu versions such as 20.04,18.04,16.04 including RedHat, CentOS 8/7, Debian, Kali Linux, Linux Mint, Fedora, and more.
1. Download Anaconda Linux Installer
Unlike Python, Anaconda is not available to install using the default system repository of Ubuntu 22.04 Linux. Therefore, we have to download its installation script manually. For that visit, the official download page of Anaconda and there select the 64-bit Linux version. This will pop up and save a Script file of around 581MB.
2. Install Anaconda Python on Ubuntu 22.04
Once you have the installation script, open your system’s command terminal and switch to the Downloads directory.
After that check whether the downloaded script file is there in the folder or not. Because whatever we download using the browser goes to the “Downloads” directory by default.
Once you are sure that the file is there, run the script:
The installation wizard will be started, hit the Enter button to start the configuration process. To skip the “End User License Agreement” press ‘q‘ and then type ‘yes‘ to agree to the terms and conditions.
After that, the setup wizard will ask you to set the installation folder location. By default, it will create an installation directory under your current user. However, if you want to assign some custom location then define that otherwise simply press the “Enter” key.
After installation is completed, the setup will ask you to initialize the Conda init, just type ‘yes‘ and hit the Enter key.
3. Add Environment variable for Anaconda
Next, we need to add the folder path of the extracted Anaconda in our system path, so that we can easily access its command tool without switching to its directory from anywhere in the terminal.
echo "export PATH=$PATH:/home/linuxshout/anaconda3/bin">> ~/.bashrc
Note: Replace linuxshout in the above command with your Ubuntu user name.
4. Reload Shell
To start using Anaconda without logging out while maintaining the state of the Current Shell or terminal; reload the bash, in simple words reload your profile without restarting or logging out the session.
Well, those who want to use the graphical user interface of the Anaconda called Navigator to manage their project, can start it using the terminal. Run:
8. Create Desktop and Launcher shortcut
By default, there will be no desktop shortcut to launch Anaconda Navigator after installing it on Ubuntu 22.04 LTS Jammy. Hence, let’s manually create the one to easily run it in the future without accessing Terminal.
Step 1: Open the command terminal on your Ubuntu 22.04 LTS or any other Linux system you are using.
Step 2: Switch to the Desktop directory by using the command:
Step 3: Now create a file for the Anaconda Desktop shortcut, for that we are using the default nano editor of Ubuntu Linux.
Step 4: You will see a text editor, where copy-paste the following text:
[Desktop Entry] Version=1.0 Type=Application Name=Anaconda Exec=/home/linuxshout/anaconda3/bin/anaconda-navigator Icon=/home/linuxshout/anaconda3/lib/python3.9/site-packages/anaconda_navigator/app/icons/Icon1024.png Terminal=false
Note: Replace linuxshout with your username and 3.9 with the version of python you have on your system.
Save the file by pressing Ctrl+X, typing- Y, and hitting the Enter key.
Also, copy the same for the launcher-
sudo cp ~/Desktop/anaconda.desktop /usr/share/applications/
How to uninstall or remove
If you are getting some errors and want to completely uninstall Anaconda from Ubuntu 22.04, then here is the script to run:
For Full Uninstallation:
conda install anaconda-clean
For standard remove:
rm -rf anaconda3
rm -rf ~/anaconda3
rm -rf ~/opt/anaconda3
Also, remove the PATH of Anaconda from your bash profile
sudo nano .bashrc
sudo nano .profile
Find the line the anacodna3 in the above two files and delete it. After that save the file using Ctlr+Alt+T.
• How to install Anaconda Navigator on Kali Linux
• Install Anaconda Navigator on Opensuse Tumbleweed or Leap
• How to install Anaconda on Debian 10 or 11 Bullseye
• How to install WineHQ on Ubuntu 22.04 LTS
• Install the Tixati Torrent client on Ubuntu 22.04 LTS