Conda is a binary package manager used by Anaconda and other systems of Python and R. Anaconda commonly used for data processing, scientific computing, predictive analytics by the data scientists, developers, analysts, and peoples working in DevOps. Anaconda has collection of over 700+ F/OSS packages. Conda is the CLI utility of Anaconda. Here is how to install Anaconda on Ubuntu 16.04. Here is official documentation of Anaconda (and conda) :
1 | https://docs.continuum.io |
Here is Anaconda download page :
1 | https://www.continuum.io/downloads |
How To Install Anaconda on Ubuntu 16.04
SSH to your server and become root user. At the time of writing, the latest version is 4.4.0, you should use a later stable version if that is available while reading our guide. Change directory to the somewhere like /tmp
and download the Anaconda for Python 3 bash script :
---
1 2 3 4 | apt update apt upgrade cd /tmp curl -O https://repo.continuum.io/archive/Anaconda3-4.4.0-Linux-x86_64.sh |
Now chmod the bash script and execute it :
1 2 | chmod +x Anaconda3-4.4.0-Linux-x86_64.sh bash Anaconda3-4.4.0-Linux-x86_64.sh |
You will get this output :
1 2 3 4 5 | Welcome to Anaconda3 4.4.0 (by Continuum Analytics, Inc.) In order to continue the installation process, please review the license agreement. Please, press ENTER to continue |
Accept the prompts. You’ll get option where it will be installed. You can change location to some location where you keep your scripts and files. By default, it will try to get installed at user’s home. At the end, you will receive prompts like :
1 2 3 | installation finished. Do you wish the installer to prepend the Anaconda3 install location to PATH in your /home/root/.bashrc ? [yes|no] |
Accept and source .bashrc
:
1 | source ~/.bashrc |
We can check to see which versions of Python are available by using this Anaconda :
1 | conda search "^python$" |
We will create an example environment named tcw_env
:
1 | conda create --name tcw_env python=3 |
And source it :
1 | source activate tcw_env |
You can get rid of the environment by running :
1 | source deactivate |
You can check the other commonly used commands:
1 2 3 | conda info --envs conda update conda conda update anaconda |