Forums

Bad Interpreter: No such file or directory

I have a database migration script which i'm trying to run to update my sqlite db for my flask app. I'm pretty sure i've used this before while having my app hosted here.

Question is, how do I access the python interpreter in the virtualenv?

#!flask/bin/python

at the beginning of the script doesn't seem to work any longer. I've tried making the above cohere to the file structure here, #!bin/python but that doesn't work either.

Try

#!/usr/bin/env python

That did it, thanks a ton.