DEV Community

Discussion on: My Take on Python Version 2 vs 3

Collapse
 
kajigga profile image
Kajigga

This is a good reason to use virtual environments when developing in Python. Along with several other good side effects, a virtual environment ensures that code is executed with the version of python you intend. It also attaches any modules installed with pip to that version of Python.

See scriptingwithpython.com/setting-up... for more info.