How to install Anaconda on a Remote Server
Find the latest version of Anaconda
Visit the Anaconda Distributions page. Go to the Anaconda Archive if you would like to view all available versions. Find the latest Linux version and copy the installer bash script.
Download the Anaconda using bash commands
On your server, change your directory to
/tmp
and download the bash script to/tmp
folder.cd /tmp curl -O https://repo.anaconda.com/archive/Anaconda3-<2022.05>-Linux-x86_64.sh
Remember to remove the ‘<’ and ‘>’ characters on all of the commands and change the <2022.05> to the latest version.
Verify the integrity of the installer
sha256sum Anaconda3-<2022.05>-Linux-x86_64.sh
- Run the installer script and complete installation
bash Anaconda3-<2022.05>-Linux-x86_64.sh
Use
~/.bashrc
to install it to your PATHOnce installation is complete, you’ll receive the following output:
... installation finished. Do you wish the installer to prepend the Anaconda3 install location to PATH in your ~/.bashrc ? [yes|no] [no] >>>
Type yes.
Activate installation
source ~/.bashrc
Test installation
Test the installation by listing the packages.
conda list
After you set conda up, you will see (base) by default. In order to deactivate (base) environment from auto activating use the command below.
conda config --set auto_activate_base false