Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
229 views
in Technique[技术] by (71.8m points)

python - 如何在macOS或OS X上安装pip?(How do I install pip on macOS or OS X?)

I spent most of the day yesterday searching for a clear answer for installing pip (package manager for Python).

(昨天我大部分时间都在寻找安装pip (Python的软件包管理器)的明确答案。)

I can't find a good solution.

(我找不到一个好的解决方案。)

How do I install it?

(如何安装?)

  ask by The System translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
easy_install pip

If you need admin privileges to run this, try:

(如果您需要管理员权限才能运行此程序,请尝试:)

sudo easy_install pip

UPDATE (Jan 2019):

(更新(2019年1月):)

easy_install has been deprecated .

(easy_install已被弃用 。)

Please use get-pip.py instead.

(请改用get-pip.py 。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...