pip:找不到命令 [英] pip: command not found

查看:231
本文介绍了pip:找不到命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在为python2.7安装pip时遇到问题.我下载了文件get-pip.py,并成功安装:

I encounter a problem when installing pip for python2.7. I downloaded the file get-pip.py, and install it successfully:

bogon:haha itensb$ python get-pip.py
Requirement already up-to-date: pip in /Library/Python/2.7/site-packages
Cleaning up...

但是当我运行命令pip时,我得到了:

But when I run the command pip, I got:

-bash: pip: command not found

我认为这是未适当设置的PATH,但是我在Mac上是新的.我需要您的帮助,谢谢!

I think it is the PATH not set appropriatelly , But I new on Mac. I need your help , thanks!

推荐答案

使用python -m pip.如果要pip命令,请查看@ user3282276的答案.

Use python -m pip. If you want the pip command check out @user3282276's answer.

这篇关于pip:找不到命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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