Making virtual environments using Anaconda
suggest changeA powerful alternative to virtualenv is Anaconda, a distribution whose conda tool installs packages and creates or removes environments. After installing Anaconda, here are some commands to get started:
Create an environment
conda create --name <envname> python=<version>
where <envname> is an arbitrary name for your virtual environment, and <version> is a specific Python version you wish to set up.
Activate and deactivate your environment
The shell needs conda init first. conda activate then works on Linux, macOS, and Windows:
conda activate <envname>
conda deactivate
Older conda releases used source activate on Linux and macOS, and activate in the Anaconda Prompt on Windows.
View a list of created environments
conda env list
Remove an environment
conda env remove -n <envname>
Find more commands and features in the official conda documentation.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents