在docker中运行 pip 报错 Can‘t start new thread
原因源头stackoverflowhis 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 版本与最新版
·
原因源头
- 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 # 永久操作
更多推荐
所有评论(0)