I'm trying to setup virtualenv
using these steps but I'm getting the following error due to source /usr/local/bin/virtualenvwrapper.sh
(either invoked from terminal or through .bashrc
):
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named virtualenvwrapper.hook_loader
virtualenvwrapper.sh: There was a problem running the initialization hooks.
If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenv has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is
set properly.
I found this SO question which is similar to what I'm experiencing. I tried to follow all the steps outlined by the accepted answer but to no avail (FWIW, I got my pip
updated in the process).
The only difference I can think of is that they already have a working virtualenv
setup before they upgraded, and the upgrade broke it. However, this is my first time installing virtualenv
. What can be causing this problem? I'm on Ubuntu Lucid Lynx with both Python 2.6.5 and 3.1.2 installed. I'd be happy to get virtualenv
running for 2.6.5; I'll be using it for Django. which python
gives usr/bin/python
.