Éric Araujo added the comment: Due to the way the shell or kernel parses the shebang, you can’t have spaces in the path to the interpreter:
http://lists.gnu.org/archive/html/bug-bash/2008-05/msg00053.html The solution is to separate your virtualenv from the directory containing your code. (virtualenvwrapper works in that way for example.) virtualenv’s job is to have a copied Python with an isolated site-packages; it does not matter whether the Python is in your project directory (./bin/python) or anywhere else (~/venvs/strategist/bin/python). ---------- nosy: +eric.araujo resolution: -> invalid stage: -> committed/rejected status: open -> pending _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20622> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com