Create your virtual environment on the go without spaces. This is why this happens:
When you create the environment, it sets the bin directory. In this bin all executable files related to the environment. Some of them are scripts. As you may know, hashbangs are used to tell the system which interpreter to use to run the script. You can often see this at the top of the scripts:
If the script is in /tmp/test.py , which tells the system to execute this command to execute the script:
/usr/bin/env python /tmp/test.py
In your case, virtualenv creates scripts like this:
When the system tries to execute this, it will try to execute the command /tmp/oh with arguments no/bin/python and /tmp/test.py . /tmp/oh does not exist, so it fails.
icktoofay Oct 27 '11 at 2:19
source share