freeCodeCamp/guide/english/python/anaconda/index.md

3.6 KiB

title
Anaconda

Anaconda

Anaconda is a package manager, environment manager and Python distribution with a collection of over 1,500 open source packages, and it offers free community support. Anaconda is platform-agnostic, so you can use it whether you are on Windows, macOS or Linux.

Anaconda easily creates, saves, loads and switches between environments on your system. It was initially created for Python programs, but it can package and distribute software for any language.

Anaconda, as a package manager, helps you find and install packages. If you need a package that requires a different version of Python, you do not need to switch to a different environment manager, because Anaconda is also an environment manager. With just a few commands, you can set up a totally separate environment to run that different version of Python, while continuing to run your usual version of Python in your normal environment.

To try Anaconda get the Anaconda Cheat Sheet and download Anaconda.

Overview

To use the Anaconda prompt (or Terminal on Linux or macOS), instead of a graphical user interface (GUI), then do so along with conda. You can also switch between them.

The quickest ways to start using conda are to take the 30-minute conda test drive, download the conda cheat sheet and visit Using conda for creative/fun things to do with conda.

The conda command is the primary interface for managing installations of various packages. It can:

  • Query and search the Anaconda package index and current Anaconda installation.

  • Create new conda environments.

  • Install and update packages into existing conda environments.

TIP: You can abbreviate many frequently used command options that are preceded by 2 dashes (--) to just 1 dash and the first letter of the option. So --name and -n are the same, and --envs and -e are the same.

For full usage of each command, including abbreviations, see Command reference. You can also type conda or conda help to access the list of commands and help text for each command available.

Packages Available in Anaconda

  • Over 200 packages are automaticlly installed with Anaconda.
  • Over 1,500 additional packages can be installed a la carte from the Anaconda repository using the conda install command.
  • Thousands of more packages are available on Anaconda Cloud.
  • The ability to install other packages is possible using the pip install command that is installed with Anaconda. Pip Packages offer many of the same features as conda packages. Ideally, using the conda package, if available, is preferred.
  • Anaconda allows for the development of your own custom packages via the conda build command. You can then share the packages on Anaconda Cloud, PyPi, and more repositories.

Sources

  1. Anaconda Documentation
  2. Conda Documentation

More Information