Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python-pip yum package provides pip-python instead of pip

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?

like image 926
Belmin Fernandez Avatar asked Nov 08 '10 18:11

Belmin Fernandez


People also ask

What is the difference between pip and Yum?

pip is a python package manager. It will only install python modules/packages. yum is the old Fedora/RedHat installation tool that installs RPMs and does dependency resolution for you.

Why is pip not installed with Python?

This error usually means there's a problem with the Python installation or the system variable PATH is not set up correctly. Try reinstalling Python and all its components to fix the problem. The easiest way is via the Python executable installer.

Does Python come with pip by default?

PIP is a package manager for Python packages, or modules if you like. Note: If you have Python version 3.4 or later, PIP is included by default.


2 Answers

If you install the python-pip package and then run:

pip-python install -U pip

pip will fix itself.

like image 136
RyanBrady Avatar answered Oct 06 '22 15:10

RyanBrady


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.

like image 39
mikerobi Avatar answered Oct 06 '22 16:10

mikerobi