Since the just script has a virtualenv incantation, I will once again recommend direnv to any Pythonistas out there. Stick "layout python" at the top, have your python stuff be managed for you (modulo having to be within the directory or subdirectory of the project). It's so nice and helps me to avoid so many problems.