How to Install Anaconda on Ubuntu 18.04

Anaconda is a popular platform and often uses the Python / R Data Science platform, for users of data science or other scientific communities. The platform is distributed as open source, which means you can do data science on Python / R and Machine learning of popular operating systems such as Linux, Windows, Mac OS X. This article guides you to install anaconda on Ubuntu 18.04 but with other versions the installation process is similar.

Anaconda is bundled through the package and each free field contains all the libraries needed for Python and R development programming when installing to the IDE (Integrated Development Environment).

You can also install and get up to 1,500 open source packages from its repository. Anaconda is often used for data processing, computer science and predictive analytics.

Install Anaconda on Ubuntu

At the time of writing, we download the latest version - Anaconda 2018.12. If you've read this article, Anaconda may have a new update but don't worry, the install process of anaconda is basically the same.

First, you use SSH to log into the VPS. In case you need further instructions, you can refer to this article to use SSH via PuTTY. If you are using a Linux or MAC OS machine, you just need to open the terminal.

Once logged into the VPS, we navigate to the / tmp directory and use curl to download the Anaconda installer from the official repository

cd / tmp

curl -O

When the progress bar completes confirming that you have finished downloading, you can check the package for consistency. To do so, run the following command:


The result will notify if something goes wrong. For us, there are no errors. You can move on to the actual installation step. You only need to run bash script install Anaconda bash script:


After running the bash command, you will be welcomed to the Anaconda installation screen. But before installing, you need to review and agree to the license terms. Just press  Enter to agree and continue.

You can see a long list, clicking the space button repeatedly will take you to the bottom of the License agreement page, where you can continue by clicking the Yes button and pressing Enter .

After agreeing to the license terms, the next step will ask you to enter the Anaconda Python installation directory on your Ubuntu machine. The default directory is the directory HOME of the user in Ubutnu. We recommend installing Anaconda on this directory. Just press Enter to confirm (you can also change the installation directory by specifying the installation directory)

The next hour you will see the installation process will take place. Wait a few minutes until the installation is completed.

After finishing installing Anaconda Python on your computer, the next question is whether you want to choose to put Anaconda Python in the path on your Ubuntu 18.04. Just press Yes and press Enter .

Once installed, you will be asked to install Visual Studio Code , which is Microsoft's code editor recently integrated with Anaconda.

If you prefer to use the VSCode editor, then type Yes to install, not just type No and press  Enter to complete the installation. Close the terminal and reopen to activate the change. You can now use Terminal to run Anaconda Python on Ubuntu 18.04 VPS.


We hope this article helped you install Anaconda on Ubuntu 18.04 VPS easily, this is a great tool to use on your project. If you have any questions or suggestions, leave a comment below!