Make pip available on Mac (easy_install is deprecated)

I didn't have pip on my new Mac, so I want to be able to use the pip command, but I couldn't do it, so I'll leave it as a memo.

$ pip install selenium
-bash: pip: command not found

I tried to refer to Making pip available on Mac, but since easy_install seems to be deprecated, I searched for another method.

I tried various things, but it didn't go well, and the final result was when I referred to this article.

bash: pip: command not found

Download get-pip.py from the site https://bootstrap.pypa.io/get-pip.py.

$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

Run get-pip.py in python.

$ sudo python get-pip.py

Check the version to see if you can use pip.

$ pip --version

Once installed, get-pip.py is no longer needed and should be removed.

$ rm get-pip.py

You can now use the pip command.

Promotion

The personal blog has been newly renewed.

https://tamappe.com/

Here are the study records of Flutter and Swift UI. If you find the article helpful, please follow us on Twitter.

https://twitter.com/tamapppe

Recommended Posts

Make pip available on Mac (easy_install is deprecated)
[Python] Make pip available on macOS
Make iPython available on OSGeo4W
Make Cython available on Windows.
Install easy_install and pip on windows
Mac pip was available as standard
python note: when easy_install is not available
Is it deprecated to use pip directly?
Make pyknp (JUMAN, KNP) available on windows
Make SciPy, scikit-learn available on M1 chip Macbooks
Make DHT11 available on Raspberry Pi + python (memo)
python on mac
problem that certificate verify failed on mac python pip
Make anaconda environment available from command prompt on windows