Failed to install pip in Docker

Unable to install pip in Docker running Ubuntu version 14.04. See the magazine below.

root@57da7dd8a590 :/usr/bin# apt-get install pip Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package pip root@57da7dd8a590 :/usr/bin# 
+5
source share
6 answers

Have you done apt-get update before this?

And then

 apt-get -y install python-pip 
+10
source

This is my docker file. Would you try:

 FROM ubuntu:14.04 MAINTAINER Storozhenko Roman < romeusmeister@gmail.com > ENV REFRESHED_AT 2015-03-16 RUN apt-get -yqq update RUN apt-get install -yqq python RUN apt-get -yqq install python-pip 
+3
source

You are using the wrong package. You can install pip in Ubuntu 14.04 using

apt-get install python-pip

If you are looking for something you can use

aptitude search pip

or website http://packages.ubuntu.com

+1
source

Looks like a problem with Ubuntu version 14.04. I switched to 13.1 and then apt-get install python3-pip solved the problem. However, it does not install pip, you get pip3. Thank you all for your help.

0
source

python-pip for Trusty (Ubuntu 14.04) is in the Universe packages.

So, I had to do the following (as root):

 apt-get install -y software-properties-common add-apt-repository universe apt-get install -y python-pip 
0
source

You can install pip on Ubuntu 15.10-x86_64 with

 apt-get update apt-get install python-pip 
0
source

Source: https://habr.com/ru/post/1216623/


All Articles