I installed Python 2.7 on my ubuntu 10 LTS
tar xzf Python-2.7.tgz cd Python-2.7 ./configure make sudo make altinstall
It seems that python is installed correctly.
I installed virtualenv.
Everything works fine if I create an envrionment using:
sudo virtualenv env
But if I try to use:
sudo virtualenv env --p python2.7 --no-site-packages
I have the following error:
ImportError: No module named warnings ERROR: The executable env1/bin/python2.7 is not functioning ERROR: It thinks sys.prefix is '/home/me/Documents/test1' (should be '/home/me/Documents/test1/env') ERROR: virtualenv is not compatible with this system or executable
On another machine, everything works fine with Python2.7, so I think something is wrong with my python2.7 installation or my virtualenv installation, but I have no idea how to start looking for where the problem is hidden.
source share