I'm using Python 2.7.14 installed through Homebrew on MacOS. How do I stop this happening?:
$ virtualenv --no-site-packages venv
New python executable in /private/tmp/venv/bin/python2.7
Also creating executable in /private/tmp/venv/bin/python
Installing setuptools, pip, wheel...done.
$ . venv/bin/activate
(venv) $ pip --version
pip 9.0.1 from /usr/local/lib/python2.7/site-packages (python 2.7)
What I expected
$ env -i PATH=/tmp/venv/bin pip --version
pip 9.0.1 from /private/tmp/venv/lib/python2.7/site-packages (python 2.7)
EDIT: Solution related Why does virtualenv inherit $PYTHONPATH from my shell?