More on Python Virtual Environments

How to Use the Native Venv Module

Create a New Virtual Environment

python -m venv ~/path/to/where/venv/will/be/created
source ./venv/bin/activate
function newpyenv {
mkdir venv
python -m venv ./venv
}
function usepyenv {
source ./venv/bin/activate
}

Example

Alex Merced is a Full Stack Developer, learn more about his work at AlexMercedCoder.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store