Anaconda is an open-source package manager, environment manager, and distribution of the Python and R programming languages. Anaconda is widely used for scientific computing, data science and machine learning workflows.
If you are looking to install Python, we recommend using Anaconda Python distribution as it is a ready-made and up-to-date package for working with Python. The base package contains libraries used for data science including those necessary for running Jupyter Lab and Jupyter Notebook. Anaconda also provides a mechanism for managing distinct environments that capture library dependencies.
This article will guide you through installing Anaconda on your Virtual Desktop in the Aridhia DRE Workspace, and then running Jupyter Notebooks.
1. Download Anaconda
From the web browser, go to the Anaconda Distribution page, scroll down to the Anaconda Installers section, and copy the link of the Linux installer (64-Bit x86 version).
In your Virtual Desktop, open the terminal and move into the tmp folder, and then use the copied link to download the latest Anaconda distribution:
cd /tmp curl -O https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh
2. Verify Anaconda download
Use the command below to verify the downloaded data integrity.
The command should print out a single line that looks like the screenshot below.
3. Install Anaconda
sudo bash Anaconda3-2020.02-Linux-x86_64.sh
- You will need to press Enter to scroll down to the bottom of the license agreement.
yesto accept the license terms and conditions
- The installer will ask if you want to accept the default installation location: do NOT accept it, instead, set it to
- At the end, type
yesto initialize Anaconda3.
4. Check Anaconda installation
Exit the terminal and open a new one. If all went well, you should see your terminal prompt prefixed by a
(base) label, which indicates you are in Conda's base environment.
If you do not see the
(base) label, you might have forgotten to initialize Anaconda, so you need to run the following command:
Now we can test the installation:
5. Change the ownership
To create your own environments, you need to have write access to Anaconda3 folder, so you need to change the folder ownership by running this command:
sudo chown -R $USER:$USER /opt/anaconda3
6. Running Jupyter Notebook
Once Anaconda is installed, you can simply open the Jupyter Notebook by running:
1. Download Anaconda installer
From the web browser, go to the Anaconda Archive, then looking at the 'Last Modified' column scroll down to find the latest Anaconda3 distribution.
Click to download the 64-Bit Windows installer. The release name should be something like Anaconda3-2020.11-Windows-x86_64.exe.
2. Install Anaconda
Navigate to the Downloads folder, and double click on the Anaconda3 executable. Follow the instructions to complete the installation
3. Open the Anaconda Prompt
Once the installation is complete, go to the Start menu and select the Anaconda Prompt. This should open the command-line shell.
See which version of Python you are running: