python-pip yum 包提供 pip-python 而不是 pip
我通过 yum 安装了 python-pip 包(使用 Fedora 的更新存储库)。但它不会将 pip
脚本添加到我的 PATH
中。
$ which pip
/usr/bin/which: no pip in
(/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:
/usr/bin:/usr/local/sbin:/usr/sbin:/sbin)
但是,它确实创建了 pip-python
:
$ rpm -ql python-pip
/usr/bin/pip-python
[...snip...]
$ which pip-python
/usr/bin/pip-python
我正在考虑使 pip
成为 pip-python
的符号链接,但是可执行文件是否有原因一开始就被命名为pip-python
?
I installed python-pip
package via yum
(using Fedora's updates repo). It does not add the pip
script to my PATH
though.
$ which pip
/usr/bin/which: no pip in
(/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:
/usr/bin:/usr/local/sbin:/usr/sbin:/sbin)
It does, however, create pip-python
:
$ rpm -ql python-pip
/usr/bin/pip-python
[...snip...]
$ which pip-python
/usr/bin/pip-python
I was considering making pip
a symbolic link to pip-python
but is there a reason the executable is named pip-python
to begin with?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您安装 python-pip 包然后运行:
pip 将自行修复。
If you install the
python-pip
package and then run:pip will fix itself.
这可能是为了避免与另一个具有名为
pip
的可执行文件的包发生冲突。只要您不安装该软件包,您就应该是安全的。另一个令人讨厌的例子是 chromium 浏览器,我的发行版的可执行文件是 chromium-browser ,以避免与一些我从未听说过的游戏发生冲突,直到我执行以下操作: apt-get install chromium 。
It is probably to avoid a conflict with another package that has an executable called
pip
. As long as you don't install that package, you should be safe.Another annoying example of this is the chromium browser, which my distro's executable is
chromium-browser
to avoid a conflict with some game I had never heard of until I did an:apt-get install chromium
.由于与 perl-pip 软件包存在冲突,Fedora 上曾经出现过这种情况。经 perl-pip 打包程序的慷慨同意,这已在最近的版本中进行了更新,因此在 Fedora 17 或更高版本上安装 pip-python 现在会安装
/usr/bin/pip
请参阅 https://bugzilla.redhat.com/show_bug.cgi?id=958377 了解详细信息。
This used to be the case on Fedora, due to the conflict noted with the perl-pip package. With the gracious consent of the perl-pip packager, this has been updated in recent versions, so installing pip-python on Fedora 17 or later now installs
/usr/bin/pip
See https://bugzilla.redhat.com/show_bug.cgi?id=958377 for details.