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’)

virtualenvwrapper.sh: 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 virtualenvwrapper.sh

/usr/local/bin/virtualenvwrapper.sh

Rickys-MacBook-Pro:~ Rtyer$ which python3

/usr/bin/python3

export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
export PROJECT_HOME=$HOME/Devel
source /usr/local/bin/virtualenvwrapper.sh

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 virtualenvwrapper.sh 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.

-Jorge

-Jorge