Miniconda Environments
Create a Miniconda 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 asterik next to it is the currently active one.
Comments
Post a Comment