Tuesday, November 16, 2021

[SOLVED] Python could not import the module virtualenvwrapper.hook_loader?

Issue

If Python could not import the module virtualenvwrapper.hook_loader, and I get this message

check that virtualenvwrapper has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 and that PATH is
set properly.

How do I start to set it up in Debian 9?


Solution

You have to install virtualenvwrapper separately for different versions of Python:

pip install virtualenvwrapper
pip3 install virtualenvwrapper

The first one is for Python 2.7, the second for Python 3.



Answered By - phd