Installing and Creating virtualenv with Python

First of all you should to install virtualenv using pip.
If you are using Linux, you should run this commands under the root user.

pip install virtualenv

of if you are using both Python 2 and Python 3 on your computer.

pip3 install virtualenv

Create new virtualenv

virtualenv my_env

or for Python3

virtualenv-3 my_env

Activate virtualenv

On Windows:

On Linux and OSx:
source my_env/bin/activate

See more details on this page

Sign In or Register to comment.