pip and pip3 - both pointing to python3.5?
pip3
looks like the default option pip
uses. Try using pip2
instead to explicitly install a Python 2 package.
Just change the first line of the /usr/local/bin/pip
to:
#!/usr/bin/python
and the first line of /usr/local/bin/pip3
to:
#!/usr/bin/python3
And then it will act normally:
> pip -V
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)
> pip3 -V
pip 9.0.1 from /usr/local/lib/python3.5/dist-packages (python 3.5)
python -m pip
This will use the version of pip that python can see.