Anaconda Cheat Sheet
JupyterLab, Spyder, and other tools. Navigator is installed with Anaconda, and may be added with Miniconda. Take a conda test drive at bit.ly/tryconda Windows, macOS, Linux: Same commands for all platforms. For full documentation of any command, add -help to the command. EXAMPLE: conda create -help CONDA 4.6 CHEAT SHEET. Anaconda.com info@anaconda.com 512-776-1066 v2.18 MANUALLY ON A SINGLE MACHINE CLUSTER DEPLOYMENT $ dask-scheduler Scheduler started at SCHEDULERADDRESS:8786 host1$ dask-worker SCHEDULERADDRESS:8786 host2$ dask-worker SCHEDULERADDRESS:8786 from dask.distributed import Client client = Client('SCHEDULERADDRESS:8786') client = Client.
Here is a short collection of commands and solutions for Anaconda with Python that I frequently tend to use.
Anaconda.com info@anaconda.com 512-776-1066 V2.18 INSTALLATION LAUNCH JUPYTER NOTEBOOKS CHEATSHEET Jupyter Notebook is an open-source web application that allows you to create and share. Conda cheat sheet Get conda: bit.ly/condaquickinstall For full documentation of any command, type the command followed by -help. Conda create -help TIP: Many options after two dashes (-) have.
conda -v
See current version of Anacondaconda install [package]
Install package to current environmentconda install -c [channel] [package]
Install package with a specific channelconda search python
See available versions of Pythonconda list
List all packages installed in current environmentconda update conda
Update Anacondaconda info -e
orconda env list
List all installed enviromentsconda env export > environment.yml
Export active environmentconda env create -f environment.yml
Create environment from specificationconda install --rev 1
Restore root environment to its state after installationconda remove --name myenv --all
Remove an environment
In Anaconda it is possible to run different environments and versions of Python which helps when working with conflicting packages or packages that are for example not updated and available for newer Python versions. In order to install a new environment with the name py35
in Anaconda simply use
This creates a new environment installed in the /envs/py35
directory inside the Anaconda directory. If you need to install further packages to the created virtual environment you can install it by
This virtual enviroment can be now activated with
or on windows with activate py35
. You can then deactivate the environment with
or on windows with deactivate py35
. And finally if you do not need the environment anymore, it can be deleted with
Here is more information on how to manage python and on how to manage packages in Anaconda.
Check if Anaconda base environment is enabled:
To disable the Anaconda base environment:
Remove root environment and conda
command:
Restore root environment to state after first installation:
To list revisions, type:
Anaconda Cheat Sheets
Source: How to reset anaconda root environment
Export the current Anaconda environment:
Anaconda Cheat Sheet Old
The --no-builds
flag prevents the inclusion of platform-specific build IDs. When using --from-history
(introduced in Conda 4.7.12), Conda will only export packages and versions which you have explicitly installed using conda install.
This environment can be then installed with:
Here is a script to bulk export all conda environments in your system:
This needs to be run with source script.sh
.
- 2018 - Conda hacks for data science efficiency