Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a problem setting up a Virtualenv on my web host server (to install python modules later on)

So far I tried this (over SSH):

wget http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.5.2.tar.gz
tar xzf virtualenv-1.5.2.tar.gz
~/usr/lib/python2.4 virtualenv-1.5.2/virtualenv.py ~/data/env


~/usr/lib/python2.4 setup.py install

I don't get any errors or output and cannot find the ~/data/env-directory that should be created. What is going wrong? Or what is the next step?

share|improve this question
Why don't you use a binary package? What is your OS/distribution? – Faheem Mitha May 21 '11 at 13:01
Why don't use setuptools' easy_install or pip? – neurino May 21 '11 at 13:35

You could try:

$ wget http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c11-py2.4.egg#md5=bd639f9b0eac4c42497034dec2ec0c2b
$ chmod a+x setuptools-0.6c11-py2.4.egg
$ ./setuptools-0.6c11-py2.4.egg
$ easy_install virtualenv
$ cd ~/data
$ virtualenv env
share|improve this answer
It says 'unknown command' when I enter: ./setuptools-0.6c11-py2.4.egg – Wienel May 21 '11 at 18:01
@Wienel: have you been able to chmodit? The setuptools egg is no more than a shell script, you have to execute it to install. Is unknown command an error you get executing the egg or is ./setuptools-0.6c11-py2.4.egg being unknown? – neurino May 21 '11 at 19:22
Yes, I checked this with a FTP client: I can chmod the file. But I still cannot execute it. – Wienel May 22 '11 at 9:43
did you double-checked the file name? Have you got necessary permissions? – neurino May 22 '11 at 18:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.