python安装pip, 报错command not found: pip

遇见情景: mac os 系统

执行:pip install requests

报错:command not found: pip

解决办法:(运行Python的安装工具,安装pip)

sudo easy_install pip

输入管理密码,等待下载好,即可

安装成功后最后会显示
Installed /Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip

安装成功验证:

pip list

 

------------

延展: 如果安装pip报错,错误信息是:No local packages or download links found for pip,请查看https://blog.csdn.net/zyw0713/article/details/84316929

 

你可能感兴趣的:(Error)