0

I have added the local directory to the path, untarred virtualenv 1.9.1, run the setup script with --prefix=$HOME/.local, but when I try to create a virtual environment I get an import error:

Traceback (most recent call last):
  File "./virtualenv", line 2, in ?
    import virtualenv
ImportError: No module named virtualenv

any help would be greatly appreciated.

Oh, and if it helps it is a Red Hat Enterprise Linux Server release 5

3
  • What version of python do you have?
    – Babu
    Jul 4, 2013 at 6:23
  • well, the server runs 2.4, which I read is no longer supported by virtualenv, but I didn't think that mattered since virtualenv manages python versions. I thought I would just be able to update python from within. Have I misunderstood something fundamental?
    – skzryzg
    Jul 4, 2013 at 6:36
  • 1
    Yes, virtualenv doesn't contain Python itself. It just creates a copy of the global installations(with custom options) into the virtual environment. More here, python.org/dev/peps/pep-0405/#id18. I think it's time to update your Python version.
    – Babu
    Jul 4, 2013 at 6:42

1 Answer 1

0

Just install virtualenv via rpm.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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