steinchen
steinchen

Reputation: 43

Python: No pip file

Mac OS: when I try to run anything involving pip, I get

-bash: pip: command not found

This happened after I accidentally deleted the pip Unix file in usr/local/bin while trying to solve a different problem with pip. At this point, I've pretty much given up on solving the problem manually.

Is there a way to just completely uninstall python and pip and start all over again?

Upvotes: 0

Views: 93

Answers (2)

steinchen
steinchen

Reputation: 43

solution was surprisingly simple: deleted everything python related from my computer:

  1. deleted Python App in Applications Folder
  2. deleted all python and pip related files in usr/local/bin
  3. deleted the Python.framework folder in Libraray/Frameworks
  4. searched for and deleted all folders named python

Then I reinstalled Python via the official python page. Pip seems to work now.

Upvotes: 0

Christian K.
Christian K.

Reputation: 2823

In recent python versions pip is as module rather than as individual script. Try:

python -m pip 

Upvotes: 1

Related Questions