'Correct Pip location on MacOS

I removed all non default MacOs python installations but still there are multiple pip versions in /usr/local/bin/ folder. Is this correct or broken state?

% which pip

/usr/local/bin/pip

% which pip3

/usr/bin/pip3

% which python

/usr/bin/python

% which python3

/usr/bin/python3


Solution 1:[1]

This is impossible to say for certain, because we do not know the history of your system. However, most likely:

  • /usr/bin/python is the ancient Python 2 that comes with macOS.
  • /usr/bin/python3 is the Python 3 that comes with Xcode.
  • /usr/bin/pip3 goes with the previous item.

This leaves /usr/local/bin/pip, which looks like a left-over from some previous installation.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ture PÄlsson