I don't DESPERATELY need pip3, I have pip and that's working, I just assumed it's probably for the best to have both, so if anyone knows the issue, any help would be appreciated. Libpython3.6-stdlib libpython3.7-stdlib:i386 libpython3.7-stdlibĮ: Package 'python3-distutils' has no installation candidateĪnd everywhere I look, I just see people saying that I shouldn't be able to run into the issue in 18.04, that Ubuntu already comes shipped with it. However the following packages replace it: This may mean that the package is missing, has been obsoleted, or
I searched up the issue, and I found that I needed to install python3-distutils, but THEN I run into this issue Package python3-distutils is not available, but is referred to by another package. ImportError: cannot import name 'sysconfig' I was already able to install pip, no problem, and I installed pip3, but when I tried running it with pip3 -version I just got an error: Traceback (most recent call last):įile "/usr/lib/python3/dist-packages/pip/_init_.py", line 26, in įrom pip.utils import get_installed_distributions, get_progįile "/usr/lib/python3/dist-packages/pip/utils/_init_.py", line 23, in įile "/usr/lib/python3/dist-packages/pip/locations.py", line 9, in The following is a minimum Dockerfile: FROM ubuntu:18.04 RUN apt-get update & apt-get install -y software-properties-common gcc & \ add-apt-repository -y ppa:deadsnakes/ppa RUN apt-get update & apt-get install -y python3.6 python3-distutils python3-pip. public IP addresses or hostnames, account numbers, email addresses) before posting!ĭoes this sidebar need an addition or correction? Tell me here Build a Ubuntu docker with Python3 and pip support. Note: ensure to redact or obfuscate all confidential or identifying information (eg. If you fix the problem yourself, please post your solution, so that others can also learn. ✻ Smokey says: buy carbon offsets, even if there's nothing to offset, to fight climate change! If you're posting for help, please include the following details, so that we can help you more efficiently: Any distro, any platform! Explicitly noob-friendly.