[Pythonmac-SIG] virtualenv problems

George Wright georgewr at bigpond.net.au
Fri Aug 15 08:59:34 CEST 2008


Gidday again

I am having trouble getting a virtualenv to use the python version I  
want on my OSX 10.5.4.
• I have installed Python 2.5.2 and used ~/.bash_profile to export  
PATH so that this one comes up when I type python at the shell prompt.  
(I haven't made a ~/.profile entry. I wonder if that would help?)
• I have installed the latest "virtualenv"
• When I create a virtualenv from the command line like this:
$ virtualenv ENV
that works  but the python available after activating is the OSX  
installed global version 2.5.1 and not the 2.5.2 I hoped for. ??
• The virtualenv docs suggest you can call it like this:
$ python virtualenv.py ENV
Which might ensure that 252 came up - But I get this error message:
/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/ 
Contents/MacOS/Python: can't open file 'virtualenv.py': [Errno 2] No  
such file or directory
AND I can't find a virtualenv.py anywhere
• The docs (http://pypi.python.org/pypi/virtualenv#id2) suggest that  
one can 'name a python' but there is no indication as to how that is  
done.
• I have tried the no_site-packages option too.

Any suggestions?
George Wright


More information about the Pythonmac-SIG mailing list