Skip to content Skip to sidebar Skip to footer

How To Associate Python Scripts With Active Virtualenv?

After I activate specific virtualenv I'd like to have Python scripts, which I run using only their name (script.py), be executed using Python interpreter from virtualenv. How to do

Solution 1:

Thanks to great work of Vinay Sajip, creator of Python Launcher (also called pylauncher) and this commit made by Paul Moore we can enjoy running Python scripts in the context of active virtualenv now! This feature is planned to be included in Python Launcher bundled with Python 3.4.


Post a Comment for "How To Associate Python Scripts With Active Virtualenv?"