Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7069

How to install Python2.7.5 in Ubuntu docker image?

$
0
0

I have specific requirement to install Python 2.7.5 in Ubuntu, I could install 2.7.18 without any issues

Below is my dockerfile

ARG UBUNTU_VERSION=18.04FROM ubuntu:$UBUNTU_VERSIONRUN apt-get update -y \&& apt-get install -y python2.7.x \&& rm -rf /var/lib/apt/lists/*ENTRYPOINT ["python"]

however if I set it to python2.7.5

ARG UBUNTU_VERSION=18.04FROM ubuntu:$UBUNTU_VERSIONRUN apt-get update -y \&& apt-get install -y python2.7.5 \&& rm -rf /var/lib/apt/lists/*ENTRYPOINT ["python"]

it is throwing the following error

E: Couldn't find any package by regex 'python2.7.5'

I want to install Python 2.7.5 along with relevant PIP, what should I do?


Viewing all articles
Browse latest Browse all 7069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>