macos system installation pip command

王林
Release: 2021-03-10 14:52:50
forward
6002 people have browsed it

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
Copy after login

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)
Copy after login

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!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template