pip._internal.models ModuleNotFoundError in Official Python Slim Docker Images
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- docker, python
- Domain
- devops, infrastructure
Research direction
Reproduce the failure with the listed docker run commands for python:3.10-slim-buster and python:3.11-slim, then inspect the official image packaging and pip installation for the reported missing module. Done means a fresh pull of each affected image can run pip install requests successfully without extra Dockerfile or apt changes.
Written by the indexing model from the issue text.
Description
Official Python slim Docker images are shipping with a broken pip installation as of late May / June 2026. Any pip command fails immediately on a fresh pull with no modifications to the image.
Affected Images
python:3.10-slim-busterpython:3.11-slim
Reproduce
docker run --rm python:3.10-slim-buster pip install requests
docker run --rm python:3.11-slim pip install requests
No apt installs, no pip upgrades, no Dockerfile changes, fails on a clean pull.
Error
File "/usr/local/lib/python3.10/site-packages/pip/_internal/locations/__init__.py", line 9
from pip._internal.models.scheme import SCHEME_KEYS, Scheme
ModuleNotFoundError: No module named 'pip._internal.models'
Impact
Silent breaking change. Builds working with zero Dockerfile modifications are
Now broken.
Environment
- Docker: 26.x
- Host OS: Linux
- Date observed: June 1, 2026
- Dominant language
- Dockerfile
- Stars
- 2.8k
- Forks
- 1.1k
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docker-library/python
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
docker-library/python#1080 · 8 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
docker-library/python#1082 · 10 comments · 36 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
docker-library/python#1076 · 6 comments · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
docker-library/python#1071 · 7 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
docker-library/python#1054 · 4 comments · 1 reaction ·
All issues in docker-library/python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
copse-dev/agent-pane#2953 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
danielmiessler/LifeOS#2215 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·