Anaconda Environments
Create a Conda environment by opening the Anaconda prompt.
Determine the versions of Python available to decide which one you want:
conda search python [ENTER]
From the list of Python versions, select one. Enter the following command to create your environment:
conda create --name <your environment name> python==<python version>[ENTER]
You will be prompted to install several packages. Type 'y' to proceed.
Packages will be downloaded and installed in your new environment. Once it completes you will be returned to the base environment. Switch to the new environment by entering this command:
conda activate <your environment name>
To exit the new environment and return to the base environment, enter:
conda deactivate
Finally, to see the environments installed on your system:
conda env list
The environment with an asterisk next to it is the currently active one.
And to delete an enviroment:
conda env remove --name <env name>
And the official Conda cheat sheet is available here:
https://docs.conda.io/projects/conda/en/4.6.0/_downloads/52a95608c49671267e40c689e0bc00ca/conda-cheatsheet.pdf
Comments
Post a Comment