Home  >  Article  >  Operation and Maintenance  >  macos system installation pip command

macos system installation pip command

王林
王林forward
2021-03-10 14:52:506000browse

macos system installation pip command

I recently planned to simply learn python, but since my computer is a mac, I need to install the pip command.

Let’s share how to install pip on a mac computer:

1. Press "command space" on the keyboard at the same time, a search box will pop up, enter "terminal" in the search box, and open the terminal

2. Enter sudo easy_install pip on the terminal and click Enter. The system will ask you to enter the password. The password is the password of the user name currently logged in to the computer.

Code example:

appledeiMac:~ apple$ sudo easy_install pip

3 . After installation, enter pip -V on the terminal (V must be capitalized). If the following code is displayed, it means the installation is successful.

Code example:

appledeiMac:~ apple$ pip -Vpip 20.2b1 from /Library/Python/2.7/site-packages/pip-20.2b1-py2.7.egg/pip(python 2.7)

Related recommendations: macos tutorial

The above is the detailed content of macos system installation pip command. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete