DEV Community

Discussion on: Dead Simple Python: Virtual Environments and pip

Collapse
 
tomisavolainen profile image
Tomi Savolainen

So I already have python2 and python3 on my Mac. How to handle that? Should I remove python2?

Collapse
 
codemouse92 profile image
Jason C. McDonald • Edited

You can absolutely leave them both installed. That's part of the beauty of a virtual environment! Just specify which one you want to use when you create the virtualenv. For example...

virtualenv -p python3 venv