I'm on Ubuntu 18.04; I expect pip to be installed for python3.8 when I do the following:
apt update apt install python3.8 ln -sf /usr/bin/python3.8 /usr/bin/python3 ln -sf /usr/bin/python3 /usr/bin/python apt update apt install python3-pip
However when install
python3-pip it additionally installs python3.6, python3.6-dev, python3.6-minimal, Are these really required? I intend to use them in containerized environments and hence keeping the image size to real minimum becomes necessary. What is the right way to get python3.8 + pip with bare essential requirements only?
Edit: I'm aware I could build on top of python:3.8 containers from docker-hub, but this question applies say I need to build on top of other containers such as cuda.
Update: With Ubuntu 16.04 or older, we need to add deadsnakes PPA to sources and it requires
apt-add-repository which in turn requires
python. So when I install
software-properties-common I end up
- installing python3.5
- add deadsnakes PPA
- apt update
- and finally install python3.8 -- which may be okay when I'm setting up my desktop with linux, but seems to me like a lot of stuff for containers.