在macOS上安装pip不起作用(不再) [英] Installing pip on macOS does not work (anymore)

查看:158
本文介绍了在macOS上安装pip不起作用(不再)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循了有关如何在macOS上安装pip的在线说明(例如,以及).

I followed online instructions on how to install pip on macOS (for example this, this, and this).

我似乎都很简单,但这对我不起作用.

I all seems to simple, but it's not working for me.

我的python --version是2.7.10.

当我运行sudo easy_install pip时,我得到:

$ sudo easy_install pip
Password:
Searching for pip
Reading http://pypi.python.org/simple/pip/
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')

有什么想法可以解决或解决此问题吗?

Any idea how I can fix or work around this?

推荐答案

您可能改用pip3.用它来升级点子.

You might have pip3 instead. Use it to upgrade pip.

pip3 install --upgrade pip

这篇关于在macOS上安装pip不起作用(不再)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆