I do not know what has happened because this used to work fine but I'm now experiencing a problem where I am running python2.7 but for some reason pip is installing in my python 3.5 dist-packages.
At least, I think this is the case based on when I type
python -V I get
Python 2.7.10 and when I type
pip -V I get
pip 8.1.2 from /usr/local/lib/python3.5/dist-packages (python 3.5)
This is causing me knock on problems when setting up
virtualenv etc. I've tried uninstalling and installing pip but it is still going back to 3.5. Could I have some advice please.