Python 2 is removed from macOS Monterey but I still have to type the pip3 command to install packages. How can you also allow the 'pip' command?

'zsh: command not found: pip' after reinstalling Monterey and Python.

I re-installed macOS Monterey and Python. I open the terminal and execute pip. This is the result:

~ $ pip list
zsh: command not found: pip

The pip3 command works:

$ pip3 list
Package    Version
---------- -------
pip        22.2.2
setuptools 63.2.0

Create a copy of pip3

At this point you can rename pip3, create a symlink or create a copy of pip3. I create a copy.

bin $ ls -la
.
.
lrwxrwxr-x   1 root      admin      10 May 29 19:05 pip3
.
.

In here you see a pip3 file.

cp pip3 pip
$ pip list
Package    Version
---------- -------
pip        22.2.2
setuptools 63.2.0

Voila. You can now use the pip command to execute pip3.

Written by Loek van den Ouweland on 2022-10-08.
Questions regarding this artice? You can send them to the address below.