使用get-pip.py时pip安装在哪里? [英] Where is pip installed to when using get-pip.py?

查看:275
本文介绍了使用get-pip.py时pip安装在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚使用 get-pip在OS X上安装了pip开发人员提供的.py 脚本.该脚本说它运行成功,但是我不能从命令行执行pip.我想pip不在我的路径中,但是我不知道它的安装位置,因此无法将其添加到路径中.任何帮助将是最出色的.谢谢!

I just installed pip on OS X using the get-pip.py script provided by the developers. The script said it ran successfully, but I cannot execute pip from the command line. I guess pip is not in my path, but I don't know where it installed to so I can't add it to the path. Any help would be most excellent. Thanks!

当我尝试再次运行安装脚本时,输出如下:

When I attempt to run the install script again, here is the output:

Requirement already up-to-date: pip in /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages
Cleaning up...

推荐答案

如果找不到pip的路径,则可以直接使用python -m pip:

If you can't find the path to pip you can simply use python -m pip instead:

python -m pip install awesome_package

这篇关于使用get-pip.py时pip安装在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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