How to install python-pip in CentOS7 Docker Container

Solution 1:

Using this in the Dockerfile allowed me to install pip:

RUN yum -y install epel-release && yum clean all
RUN yum -y install python-pip && yum clean all

That seems much cleaner than using an rpm or curl.

If that still fails, try:

RUN yum -y install --enablerepo="epel" python-pip && yum clean all