python-pip yum软件包提供pip-python而不是pip [英] python-pip yum package provides pip-python instead of pip

查看:120
本文介绍了python-pip yum软件包提供pip-python而不是pip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过yum安装了python-pip软件包(使用Fedora的更新仓库).但是,它不会将pip脚本添加到我的PATH中.

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)

但是它确实创建了pip-python:

$ rpm -ql python-pip
/usr/bin/pip-python
[...snip...]

$ which pip-python
/usr/bin/pip-python

我当时正在考虑将pip做成指向pip-python的符号链接,但是有没有理由将可执行文件命名为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?

推荐答案

这可能是为了避免与另一个名为pip的可执行文件的软件包发生冲突.只要您不安装该软件包,就应该安全.

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.

另一个令人讨厌的例子是Chrome浏览器,我的发行版的可执行文件是chromium-browser,以避免与某些我从未听说过的游戏发生冲突,直到我执行了apt-get install chromium.

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.

这篇关于python-pip yum软件包提供pip-python而不是pip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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