Skip to content

pip._internal.models ModuleNotFoundError in Official Python Slim Docker Images #1121

Description

@seemendra

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-buster
  • python: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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions