Environment
- pip version: 10.0.1
- Python version: 2.7.14 + 3.6.4
- OS: MacOS High Sierra
Description
At the time of installation, pip, pipX, and pipX.Y will be written to /usr/local/bin. If there are existing symlinks, e.g. pip is symlinked to pipZ.W, this will overwrite pip executables for different versions and obviously break things.
Expected behavior
Remove the symlink and write a new file.
How to Reproduce
- Install pip for Python 2.7 (
python get-pip.py)
cd /usr/local/bin, rm pip, ln -s pip2.7 pip
- Install pip for Python 3.6 (
python3 get-pip.py)
Output
pip2.7 is now running 3.6