On Dec 6, 10:00 am, lolcoder2000 <[email protected]> wrote:
> Hi,
>
> Any help appreciated with the following.
>
> Trying to install a virtual environment to a users own directory with
> both the "virtualenv" command and the python virtualenv.py script.
>
> pwd
> /home/simon/Pylons
>
>  python virtualenv.py --no-site-packages env
> OR
>  virtualenv --no-site-packages env
>
> +++++++++++++++++++++++++++++++++++
> New python executable in env/bin/python
> Traceback (most recent call last):
>   File "/home/simon/Pylons/env/lib/python2.7/site.py", line 66, in
> <module>
>     import os
>   File "/home/simon/Pylons/env/lib/python2.7/os.py", line 49, in
> <module>
>     import posixpath as path
>   File "/home/simon/Pylons/env/lib/python2.7/posixpath.py", line 16,
> in <module>
>     import warnings
> ImportError: No module named warnings
> ERROR: The executable env/bin/python is not functioning
> ERROR: It thinks sys.prefix is '/home/simon/Pylons' (should be '/home/
> simon/Pylons/env')
> ERROR: virtualenv is not compatible with this system or executable
> +++++++++++++++++++++++++++++++++++++
>
> It seems to have taken the "env" argument as the start of the path and
> there did not seem to be any options available to correct this
> problem?
>
> Thanks for any help even if its just pointers to the right
> documentation on the matter or to  more appropriate group?
>
> LOL
> lolC

It looks like you've installed Python in your home directory. Is that
right? Did you compile it yourself? What commands did you use? This is
how I normally install to $HOME:

./configure --prefix $HOME
make && make install

In any case, it looks like your Python installation is borked rather
than a problem with virtualenv.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to