Use the following magic(5) at the start of the script.
#!/usr/bin/env python
Change which virtualenv is active and it’ll use the python from that virtualenv.
Deactivate the virtualenv, it still runs.
Use the following magic(5) at the start of the script.
#!/usr/bin/env python
Change which virtualenv is active and it’ll use the python from that virtualenv.
Deactivate the virtualenv, it still runs.