virtualenvwrapper installation on MacOS in 2018

This post is to try and save someone the 15 minutes I stupidly wasted!

If you installed Python via Homebrew, it now names the python executable python2 (and similarly pip becomes pip2).

When you then try to install virtualenvwrapper you get the error:

Links such as are absolutely correct – they were just written before Brew changed the naming convention to python2.

The fix is super simple – set your .bash_profile/.bashrc as follows:


Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: