Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to install pip in Docker

Tags:

docker

pip

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

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#
like image 842
NKD Avatar asked Apr 01 '15 15:04

NKD


3 Answers

Did you do apt-get update before that?

And then

apt-get -y install python-pip
like image 90
mrh Avatar answered Oct 20 '22 03:10

mrh


This is my Dockerfile. You would try it:

FROM ubuntu:14.04
MAINTAINER Storozhenko Roman <[email protected]>
ENV REFRESHED_AT 2015-03-16

RUN apt-get -yqq update
RUN apt-get install -yqq python 
RUN apt-get -yqq install python-pip
like image 39
Roman Storozhenko Avatar answered Oct 20 '22 01:10

Roman Storozhenko


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

apt-get install python-pip

If youre searching for something you can use

aptitude search pip

or the Website http://packages.ubuntu.com

like image 1
tvn Avatar answered Oct 20 '22 02:10

tvn