Python Virtual Environment
Install virtuelenv via pip3
|
|
then check the version
|
|
Create a Virtual Environment
First, let us create a folder .virtualenvs
in the home directory. This is where we will keep all our virtual environments.
|
|
From inside the .virtualenvs
directory, create a new virtual environment using virtualenv
|
|
Now, let us activate the virtual environment
|
|
Example
For the learn python the hard way I did this:
|
|
In VSCode
Check the settings and search for venv
. Update the path to the above created .virtualenv
directory.