How to install Conda

Conda is a package and environment management system for Python. To install it on Ubuntu, I used these steps:

  • Download the bash shell script by clicking on the Download button here. For example, when I did this, I got a file.

  • Run the downloaded bash shell script through bash. For example, I did:

$ bash
  • The bash script asks you for a place to install Anaconda. Typically this is $HOME/anaconda3. But you can provide it any alternate location you wish. Conda will store the environments you create in an envs subdirectory inside this base directory.

  • The bash script asks if you want to add the bin subdirectory inside the base directory to your PATH environment variable. You can choose to do this on your own too. In either case, remember to make sure the Conda bin path is appended to PATH. If it is instead prepended to PATH, then Conda’s Python interpreter will be invoked as the default one at the shell. Typically, you do not want this behavior. You want Conda’s Python to be used only inside a Conda environment.

  • After the script is done, restart your shell, so that your PATH has the Anaconda bin subdirectory.

  • Run this command to check if everything is working:

$ conda info
  • I use the Fish shell, so I need to add this line to the to be able to use Conda’s environment activate and deactivate commands:
source (conda info --root)/etc/fish/conf.d/

I was able to create environments and use Conda after this.

Tried with: Ubuntu 16.04


One thought on “How to install Conda

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.