Skip to content

Installing pip for multiple Python versions does not work with symlinks #5533

@MichaelKim0407

Description

@MichaelKim0407

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

  1. Install pip for Python 2.7 (python get-pip.py)
  2. cd /usr/local/bin, rm pip, ln -s pip2.7 pip
  3. Install pip for Python 3.6 (python3 get-pip.py)

Output

pip2.7 is now running 3.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automationstate: needs reproducerNeed to reproduce issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions