原因源頭
- stackoverflow
- his is because the default seccomp profile of Docker 20.10.9 is not adjusted to support the clone() syscall wrapper of glibc 2.34 adopted in Ubuntu 21.10 and Fedora 35.
- 由于docker 版本與最新版 python 容器沖突導致
解決方案
- 以下三種方式都可以解決
- 升級Docker 到 23.0.0 以上版本
- 修改python 鏡像帶有bullseye,例如 python:3.8-bullseye
- 安裝時,去除進度條顯示
- pip install --progress-bar off -r requirements.txt #一次性操作
- pip config --user set global.progress_bar off # 永久操作