Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to create a Python virtual environment

Create a directory

$ mkdir Dev

Move in the directory

$ cd Dev

You can also create a sub directory

$ mkdir penv

Create the virtual environment

$ python3.6 -m venv .

Note that the period '.' signifies that the virtual envrionment is being create in the
present directory not a sub directory

To activate the virtual environment

$ source bin/activate

To exit the virtual environment

$ deactivate
Source by classroom.udacity.com #
 
PREVIOUS NEXT
Tagged: #How #create #Python #virtual #environment
ADD COMMENT
Topic
Name
9+3 =