How to create a virtual environment in Python (virtualenv)

The standard way to create a virtual environment is the following:

virtualenv name_of_environment

If this doesn’t work, you can also run the virtualenv command like this:

python -m virtualenv name_of_environment

To activate the new environment:

source name_of_environment/bin/activate
Maak je eigen website, gratis op WordPress.com.Maak je eigen website
Start gratis