我的python无法下载pip

各位大拿,我的mac电脑下载的是python 2.7.10的环境,之前成功下载了pip,但是最近要用pip下载lxml和bs4环境的时候发现我的pip居然没了,终端结果如下:
MacBook-Pro:~ zhenghongyu$ pip -V
-bash: pip: command not found
然后我尝试重新下载pip,结果一直显示error,终端结果如下:
MacBook-Pro:~ $ sudo easy_install pip
Password:
Searching for pip
Reading https://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 https://pypi.python.org/simple/
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')
请问遇到这种情况下我应该要怎么办?

  1. 重新安装curl的证书:
$ wget http://curl.haxx.se/ca/cacert.pem
$ mv cacert.pem ca-bundle.crt
$ sudo cp ca-bundle.crt /etc/pki/tls/certs/

参考链接:
http://t.csdn.cn/jVZit

还在用2.7版本,建议升级到3.8.8及以上版本

建议Python3.7版本太高也不好

感觉也可以使用conda创建虚拟环境来解决

Python 2.7.9 + 或 Python 3.4+ 以上版本都自带 pip 工具。
没有可以去官网安装
pip官网:https://pypi.org/project/pip/#downloads
查看安装命令即可

img

img

你这属于环境变量没配好
重新装个python3.8的环境 ,利用pycharm 可以安装你想要的库

属于环境变量没配好。重新装个python3.8的环境 。下载一定要在官网上下载。


实在不行,pycharm中

img

安装annoconda,代替pip

img

pip不在了?那你在终端输入python还能进去不