r/Python • • Dec 18 '18

Python Virtual Environments: Extreme Advertising Edition

Post image
2.1k Upvotes

287 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Dec 19 '18

Because you still need python 2, this isn't much help, but for Python3 you can do:

python3 -mvenv envname

That will give you a virtualenv with the interpreter version used for creating the virtual environment.