Q: How to create a virtual environment using Virtualenv?

Python Virtuaenv environment

Answer:

First create a directory to run virtualenv, for this example. I will use /server directory

mkdir /server

To create the virtual environment run the following command:

virtualenv /server

To activate and start using the virtualenv you created:

source /server/bin/activate

Once you are done using the virtualenv, you can use the command to deactivate the virtualenv

deactivate
    No comments found for this tutorial, be the first to leave a comment!

Answered by
Double

Last updated on
Aug 12, 2016

Share