Conda Environment Cheat Sheet



Activate a Conda environment at a particular location on disk. EXAMPLE: conda create -help CONDA 4.6 CHEAT SHEET. Conda search PKGNAME -info conda clean -all. To get the Conda version of the currently active environment, run this command: conda -version. Example result: conda 4.3.33. To get a detailed list of information about the environment, for instance: Conda version, platform (operating system and bit count — 32- or 64-bit), Python version, environment directories, run this command: conda.

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

Conda Environment Cheat Sheets

Conda Environment Cheat SheetConda Environment Cheat SheetConda
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

Conda Environment Cheat Sheet 2019

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

Cheat

Conda Create 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