Conda Cheatsheet



You have 3 conda download options:

CondaConda
  1. CONDA CHEAT SHEET Command line package and environment manager Learn to use conda in 30 minutes at bit.ly/tryconda TIP: Anaconda Navigator is a graphical interface to use conda. Double-click the Navigator icon on your desktop or in a Terminal or at the Anaconda prompt, type anaconda-navigator CONTINUED ON BACK → conda info conda update conda.
  2. EXAMPLE: conda create -help CONDA 4.6 CHEAT SHEET. Conda search PKGNAME -info conda clean -all conda uninstall PKGNAME -name ENVNAME conda update -all -name ENVNAME conda install -yes PKG1 PKG2 conda config -show conda config -show-sources Using Packages and Channels.
  3. Conda deactivate my-dev-env. Search for packages. Conda search searches whatever channels are configured (at least, that is the default channel) conda search -channel searches the package also in the specified channel. Conda config -add channels Update a Conda environment.
  • Download Anaconda---free.

  • Download Miniconda---free.

  • Purchase Anaconda Enterprise.

Create environment. Conda create -n myenv conda create -n myenv python=3.6 # with a specific python version conda create -n myenv scipy # with a specific python package conda env create -f environment.yml # from a.yml file. List environments. Activate environment. Conda activate myenv. Deactivate environment. Conda deactivate. CONDA CHEAT SHEET Take a conda test drive at bit.ly/tryconda For full documentation of any command, type the command followed by -help, such as conda create -help TIP: Anaconda Navigator is a point-and-click way to manage packages and environments with conda. For example, with Navigator you can run Jupyter Notebooks or Spyder without using a terminal.

You can download any of these 3 options with legacy Python 2.7 orcurrent Python 3.

You can also choose a version with a GUI or a command lineinstaller.

Tip

If you are unsure which option to download, choose themost recent version of Anaconda3, which includes Python 3.7.If you are on Windows or macOS, choose the version with theGUI installer.

Choose Anaconda if you:

  • Are new to conda or Python.

  • Like the convenience of having Python and over 1,500 scientificpackages automatically installed at once.

  • Have the time and disk space---a few minutes and 3 GB.

  • Do not want to individually install each of the packages youwant to use.

Choose Miniconda if you:

  • Do not mind installing each of the packages you want to useindividually.

  • Do not have time or disk space to install over 1,500 packages atonce.

  • Want fast access to Python and the conda commands and you wishto sort out the other programs later.

  • Whether you use Anaconda or Miniconda, select the most recentversion.

  • Select an older version from the archive only if you are testingor need an older version for a specific purpose.

  • To use conda on Windows XP, select Anaconda 2.3.0 and seeUsing conda on Windows XP with or without a proxy.

Anaconda Python Cheat Sheet

Conda Cheatsheet

Both GUI and command line installers are available for Windows,macOS, and Linux:

Cheatsheet
  • If you do not wish to enter commands in a terminal window,choose the GUI installer.

  • If GUIs slow you down, choose the command line version.

  • The last version of Python 2 is 2.7, which is included withAnaconda and Miniconda.

  • The newest stable version of Python is 3.7, which is includedwith Anaconda3 and Miniconda3.

  • You can easily set up additional versions of Python such as 3.5by downloading any version and creating a new environment withjust a few clicks. See Getting started with conda.

SHA-256 checksums are available forMiniconda andAnaconda.We do not recommend using MD5 verification as SHA-256 is more secure.

Conda Cheat Sheet

Cheatsheet

Download the installer file and before installing verify it as follows:

  • Windows:

    • If you have PowerShell V4 or later:

      Open a PowerShell console and verify the file as follows:

    • If you don't have PowerShell V4 or later:

      Use the free online verifier toolon the Microsoft website.

      1. Download the file and extract it.

      2. Open a Command Prompt window.

      3. Navigate to the file.

      4. Run the following command:

  • macOS: In iTerm or a terminal window enter shasum-a256filename.

  • Linux: In a terminal window enter sha256sumfilename.