python-pip yum软件包提供pip-python而不是pip [英] python-pip yum package provides pip-python instead of 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屋!