DEV Community

Discussion on: Dead Simple Python: Virtual Environments and pip

Collapse
 
openpencil profile image
JS

Thanks for this clear post! What is the difference between:

virtualenv -p python3 venv
and
python3 -m venv myvirtualenv

Collapse
 
codemouse92 profile image
Jason C. McDonald

There basically isn't one. The latter is preferred now, though, because it feels a little more natural feeling to create a virtual environment using a specific version of Python:

python3.8 -m venv myvirtualenv