Well, looking around here there are tons of questions about how to correctly installing virtualenvwrapper on Mac. I really tried all of them but for no avail. I've noticed the previous questions don't have the configuration like my computer, so here it is:
- Mac OS Sierra 10.12
- Python3.5.2 installed from python.org installer for Mac OS
- This installation puts Python3.5.2 in this path:
/Library/Frameworks/Python.framework/Versions/3.5/bin/python3
- I've run
python3 get-pip.py
command to installpip
correctly, as I think sudo pip3 virtualenvwrapper
to be sure all settings will be done as they should- As the documentation says, edited
~/.bash_profile
with the code below:export WORKON_HOME=$HOME/.virtualenvs export PROJECT_HOME=$HOME/projects source /usr/local/bin/virtualenvwrapper.sh
Then, whenever I open a new fresh Terminal, I got this:
/usr/bin/python: 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/python and that PATH is set properly.
I've tried the fixes from others questions, to no avail:
- set
VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
on virtualenvwrapper.sh - set
VIRTUALENVWRAPPER_PYTHON="$(command \which python3)"
on virtualenvwrapper.sh ln -fs /Library/Frameworks/Python.framework/Versions/3.5/bin/python3 /usr/local/bin/python3
alias python=/usr/local/bin/python3
Well, looking forward to anyone with a configuration like mine to see what I'm doing wrong.