Installation @Ubuntu#
Download Installer#
Description |
Link |
|---|---|
Anaconda installer |
|
Anaconda installer file hashes |
Make Installer Executable#
Command |
Description |
Expected Output |
|---|---|---|
|
Check permissions |
Outputs |
|
Modify permission |
|
|
Verify permission modification |
Outputs |
Run Installer#
Command |
Description |
|---|---|
|
This will run the installer |
During the installation process, you’ll be prompted with the question:
Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]
[no] >>> yes
Type yes and press Enter to continue.
Post-Installation Steps#
Hint
To maintain a clean setup, clone the base environment right after installation and create a separate environment, conda create --name <myenv> --clone base. This practice helps to avoid any modifications or conflicts in the base environment. To make it foolproof, adjust your .bashrc configuration as described in the steps below.
Command |
Description |
|---|---|
|
Check current Anaconda version |
|
Update Conda to the latest version |
|
Clone the base environment |
|
Verify installation by showing a list of installed packages |
Remember, you should restart the terminal after installing Anaconda. In some cases, changes might not take effect until the system is restarted.
Configuring the .bashrc File#
After setting up a working Anaconda environment, it’s is also recommended to configure the .bashrc file for Conda.
Step 1: Open .bashrc#
Open the .bashrc file in your home directory using a text editor. In this case, Nano is used.
nano ~/.bashrc
Step 2: Insert Conda Configuration#
At the end of the file, insert the following Conda configuration:
# <<< conda initialize <<<
# Conda config
conda deactivate
conda activate baseclone
By adding these lines to your .bashrc file, you ensure that every time a new bash session starts, it will initialize Conda and activate the <myenv> environment.
Step 3: Save and Exit Nano#
While in Nano editor, you can save your changes and exit by using the following shortcuts:
`Ctrl + O` # to save the file.
`Ctrl + X` # to exit the nano editor.
After saving the changes and closing the .bashrc file, you may need to restart your terminal for the changes to take effect.