Conda Environment Cheat Sheet



Cheat sheet¶ Download the Anaconda Cheat Sheet for a quick guide to using Anaconda. « Moving Anaconda from one directory to another Frequently asked questions ». Conda env export cut -f 1 -d '=' environment.yml Creating a new environment from a YAML file conda env create -f environment.yml Updating a conda env using a YAML file conda env update -file environment.yml Conclusion. And there you have it, most of the everyday conda env commands you will ever need.

some useful productivity tools¶¶
  • code editor: sublime text: https://www.sublimetext.com/3
  • nicer command line tool for Windows: http://cmder.net/

Define Conda environments. Create a YAML file, e.g., my-dev-env.yml as follows: name: my-dev-env channels: - default - conda-forge - bioconda - r dependencies: - Python=3.6. r-base=3.5.1 - htslib=1.8. ( default channel listed to be explicit, can be omitted). Make exact copy of an environment: conda create –clone py35 –name py35-2: List all packages and versions installed in active environment: conda list: List the history of each change to the current environment: conda list –revisions: Restore environment to a previous revision: conda install –revision 2: Save environment to a text file. Conda cheat sheet. CONDA CHEAT SHEET Command line package and environment manager Learn to use conda in 30 minutes at bit.ly/trycondaTIP: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 → Cheat sheet¶.

Conda Environment Cheat Sheet

Conda commands¶¶

What is conda?

  • Conda is a powerful environment and package manager.
  • Create multiple environments with different versions of Python with different sets of libraries
  • easily switch between environments
  • http://anaconda.org/ provides free hosting for Python libraries
  • conda helps to easily search for, install libraries and also to keep them up to date

Learn resources:

  • getting started: http://conda.pydata.org/docs/test-drive.html#managing-environments
  • reference doc: http://conda.pydata.org/docs/

Conda Create Environment Cheat Sheet

List all environments¶¶

Run the above command in terminal

Create a new environment¶¶

Conda Environment Cheat Sheet Pdf

Itunes for older mac os. Check if new folder was created in C:anaconda3envs

Advanced steps¶¶

Clone an existing environment¶¶

For instance, to clone the root environment:

Conda Environment Cheat Sheets

But you would most likely want to clone the ArcGIS Pro’s Python environment so you can experiment without messing up the default one

Conda Environment Cheat Sheet

Starting Jupyter notebook in a different directory¶¶

Conda Create Environment Cheat Sheet

For the most part you can cd to desired directory after activating your environment and start the notebook. But if you cannot do it: