Django installation

Rickys-MacBook-Pro:~ Rtyer$ source ~/.bashrc

/Library/Developer/CommandLineTools/usr/bin/python3: Error while finding module specification for ‘virtualenvwrapper.hook_loader’ (ModuleNotFoundError: No module named ‘virtualenvwrapper’) There was a problem running the initialization hooks.

If Python could not import the module virtualenvwrapper.hook_loader,

check that virtualenvwrapper has been installed for

VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 and that PATH is

set properly.

Rickys-MacBook-Pro:~ Rtyer$ which


Rickys-MacBook-Pro:~ Rtyer$ which python3


export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
source /usr/local/bin/

Is what I added to my .bachrc

help me out please

Sorry I took so long to see this. It looks like virtualenvwrapper wasn’t install where the script was looking for it. It happens!

The safest way is to make sure you’re running the same interpreter that you’re referring to in the bash script. That happens to be named python3. So:

python3 -m pip install virtualenvwrapper

That way, you’ll ensure it gets installed to the correct interpreter.

Then close your shell, open a new one, and source your .bashrc file again.