Conda Environment Cheat Sheet



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. 1.- Create a new environment: conda create -name the-name-of-environment. 2.- To activate the environment: conda activate the-name-of-environment. 3.- To get a list of your environment: conda env. Conda Cheat Sheet Peter Ebert. One can export a more comprehensive specification of the respective Conda environment via conda env export -name.

最近在使用anaconda,抄了一下cheat sheet:

Conda Environment Cheat Sheet 2019

statementcommand
Verify conda is installed, check version numberconda info
Update conda to the current versionconda update conda
Install a package included in Anacondaconda install PACKAGENAME
Run a package after install, example Spyder*spyder
Update any installed programconda update PACKAGENAME
Command line help COMMANDNAME –helpconda install –help

Conda Environment Cheat Sheet Printable

statementcommand
Create a new environment named py35, install Python 3.5conda create –name py35 python=3.5
Activate the new environment to use it WINDOWS:activate py35
LINUX, macOS:source activate py35
Get a list of all my environments, active environment is shown with *conda env list
Make exact copy of an environmentconda create –clone py35 –name py35-2
List all packages and versions installed in active environmentconda list
List the history of each change to the current environmentconda list –revisions
Restore environment to a previous revisionconda install –revision 2
Save environment to a text fileconda list –explicit > bio-env.txt
Delete an environment and everything in itconda env remove –name bio-env
Deactivate the current environment WINDOWS:deactivate
macOS, LINUX:source deactivate
Create environment from a text fileconda env create – le bio-env.txt
Stack commands: create a new environment, name and install the biopython packageconda create –name bio-env biopython it bio-env

Conda Create Environment Cheat Sheet

Conda

Conda Create Environment Cheat Sheet

Environment

Conda Environment Cheat Sheet

statementcommand
Use conda to search for a packageconda search PACKAGENAME
See list of all packages in Anacondahttps://docs.anaconda.com/anaconda/packages/pkg-docs