problems with python and virtualenvwrapper after updating: No module named virtualenvwrapper

If you have modified your virtualenvwrapper to point to python3, like I do, add the following line in your .bashrc file : export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 making sure that it’s placed before the following line (if you have it): source /usr/local/bin/virtualenvwrapper.sh Then, make sure you install the virtualenv and virtualenvwrapper using: sudo /usr/local/bin/pip3 install virtualenv virtualenvwrapper

Python Virtualenv – No module named virtualenvwrapper.hook_loader

The issue was solved following the steps below: #switch the /usr/bin/python link to point to current python link cd /usr/bin sudo mv python python.bak sudo ln -s /Library/Frameworks/Python.framework/Versions/Current/bin/python python Re-arrange the export command in order that it is placed before the virtualenv commands in my .bash_profile file: PATH=/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH export PATH # needed for virtualenvwrapper export … Read more

Where should virtualenvs be created?

Many people use the virtualenvwrapper tool, which keeps all virtualenvs in the same place (the ~/.virtualenvs directory) and allows shortcuts for creating and keeping them there. For example, you might do: mkvirtualenv djangoproject and then later: workon djangoproject It’s probably a bad idea to keep the virtualenv directory in the project itself, since you don’t … Read more

What is the difference between venv, pyvenv, pyenv, virtualenv, virtualenvwrapper, pipenv, etc?

This is my personal recommendation for beginners: start by learning virtualenv and pip, tools which work with both Python 2 and 3 and in a variety of situations, and pick up other tools once you start needing them. Now on to the answer to the question: what is the difference between these simalarly named things: … Read more