0

So I've had this problem for a while now where sometimes random commands with pip don't work. Just today I was trying to run the command:

$ python3 -m pip3 install --upgrade pip3
/usr/local/opt/[email protected]/bin/python3.9: No module named pip3

EDIT - I have tried:

$ python3 -m pip install -U pip
Requirement already satisfied: pip in /usr/local/lib/python3.9/site-packages (21.0.1)
$ python3 -m pip3 install --upgrade pip3
/usr/local/opt/[email protected]/bin/python3.9: No module named pip3

Any idea what might be causing this and how to fix?

4
  • 4
    The python module pip3 is not the same as the command pip3. Commented Mar 14, 2021 at 17:57
  • 2
    To expand, pip3 is an entry point for the pip module. There is no module pip3. Hence, you want python3 -m pip install -U pip. Commented Mar 14, 2021 at 18:04
  • Thanks for the suggestion but when I ran that I still get the same error Commented Mar 14, 2021 at 18:22
  • 2
    That's not the same error. Commented Mar 14, 2021 at 18:27

1 Answer 1

2

Pip is already up-to-date. There is nothing to fix.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks, I am just trying to figure out why I am still getting the no module named pip3 error. Is this expected?
Yes that's expected because pip3 isn't a module. The module is named "pip" and "pip3" is a command that just calls python3 pip.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.