Correct Pip location on MacOS

Viewed 95

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
1 Answers

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.

Related