Python Language Virtual environments Making virtual environments using Anaconda

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

A powerful alternative to virtualenv is Anaconda - a cross-platform, pip-like package manager bundled with features for quickly making and removing virtual environments. After installing Anaconda, here are some commands to get started:

Create an environment

conda create --name <envname> python=<version>

where <envname> in an arbitrary name for your virtual environment, and <version> is a specific Python version you wish to setup.

Activate and deactivate your environment

# Linux, Mac
source activate <envname>                            
source deactivate

or

# Windows
activate <envname>                                    
deactivate

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.



Got any Python Language Question?