简体   繁体   English

无法为 python3 macos mojave 安装 pip

[英]can't install pip for python3 macos mojave

I've been trying to install pip for Python3 on mojave.我一直在尝试在 mojave 上为 Python3 安装 pip。 I've seen different posts on SO and other websites but nothing works.我在 SO 和其他网站上看到过不同的帖子,但没有任何效果。

for instance, in How to install pip for Python 3 on Mac OS X?例如,在如何在 Mac OS X 上为 Python 3 安装 pip?

I follow the steps:我按照以下步骤操作:

curl -O https://bootstrap.pypa.io/ez_setup.py

python3 ez_setup.py

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

python3 get-pip.py

but when running python3 get-pip.py it reinstalls pip for python2.但是在运行python3 get-pip.py它会为 python2 重新安装 pip。

Is there a way to install pip for python3 without removing python2 from the system?有没有办法在不从系统中删除 python2 的情况下为 python3 安装 pip?

这篇文章建议使用自制软件来安装 pip3: 如何在我的 Mac 上安装 pip3?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM