docker-library / docker-library/python
pip._internal.models ModuleNotFoundError in Official Python Slim Docker Images
まだ誰も着手していません。
- 主要言語
- Dockerfile
- スター
- 2.8k
- フォーク
- 1.1k
- 平均マージ
- 3日 1時間
- マージ済み PR(30日)
- 1
説明
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
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
python:3.10-slim-buster と python:3.11-slim に対して記載されている docker run コマンドで失敗を再現し、その後、報告された不足モジュールについて公式イメージのパッケージングと pip のインストールを調査します。影響を受ける各イメージを新しく pull した状態で、追加の Dockerfile や apt の変更なしに pip install requests を正常に実行できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker, python
- 領域
- devops, infrastructure
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100