os: windows11 wsl ubuntu20.04
执行 docker compose up 出错如下
=> ERROR [ 8/13] RUN pip3 install --no-cache scikit-learn 192.1s
------
> [ 8/13] RUN pip3 install --no-cache scikit-learn:
#0 1.361 Collecting scikit-learn
#0 1.726 Downloading scikit-learn-1.2.2.tar.gz (7.3 MB)
#0 2.563 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.3/7.3 MB 8.8 MB/s eta 0:00:00
#0 3.370 Installing build dependencies: started
#0 104.7 Installing build dependencies: still running...
#0 169.4 Installing build dependencies: still running...
#0 191.5 Installing build dependencies: finished with status 'error'
#0 191.5 error: subprocess-exited-with-error
#0 191.5
#0 191.5 × pip subprocess to install build dependencies did not run successfully.
#0 191.5 │ exit code: 1
#0 191.5 ╰─> [79 lines of output]
#0 191.5 Ignoring numpy: markers 'python_version == "3.10" and platform_system == "Windows" and platform_python_implementation != "PyPy"' don't match your environment
#0 191.5 Collecting setuptools
#0 191.5 Using cached setuptools-67.6.1-py3-none-any.whl (1.1 MB)
#0 191.5 Collecting wheel
#0 191.5 Using cached wheel-0.40.0-py3-none-any.whl (64 kB)
#0 191.5 Collecting Cython>=0.29.24
#0 191.5 Using cached Cython-0.29.33-cp39-cp39-musllinux_1_1_x86_64.whl (2.1 MB)
#0 191.5 Collecting oldest-supported-numpy
#0 191.5 Using cached oldest_supported_numpy-2022.11.19-py3-none-any.whl (4.9 kB)
#0 191.5 Collecting scipy>=1.3.2
#0 191.5 Downloading scipy-1.10.1.tar.gz (42.4 MB)
#0 191.5 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.4/42.4 MB 9.3 MB/s eta 0:00:00
#0 191.5 Installing build dependencies: started
#0 191.5 Installing build dependencies: still running...
#0 191.5 Installing build dependencies: still running...
#0 191.5 Installing build dependencies: finished with status 'done'
#0 191.5 Getting requirements to build wheel: started
#0 191.5 Getting requirements to build wheel: finished with status 'done'
#0 191.5 Installing backend dependencies: started
#0 191.5 Installing backend dependencies: finished with status 'done'
#0 191.5 Preparing metadata (pyproject.toml): started
#0 191.5 Preparing metadata (pyproject.toml): finished with status 'error'
#0 191.5 error: subprocess-exited-with-error
#0 191.5
#0 191.5 × Preparing metadata (pyproject.toml) did not run successfully.
#0 191.5 │ exit code: 1
#0 191.5 ╰─> [40 lines of output]
#0 191.5 + meson setup --prefix=/usr /tmp/pip-install-rcwoveti/scipy_62fc21d83ad647f3b1cac28d15cb5c4d /tmp/pip-install-rcwoveti/scipy_62fc21d83ad647f3b1cac28d15cb5c4d/.mesonpy-w0ie64vn/build --native-file=/tmp/pip-install-rcwoveti/scipy_62fc21d83ad647f3b1cac28d15cb5c4d/.mesonpy-native-file.ini -Ddebug=false -Doptimization=2
#0 191.5 The Meson build system
#0 191.5 Version: 1.0.1
#0 191.5 Source dir: /tmp/pip-install-rcwoveti/scipy_62fc21d83ad647f3b1cac28d15cb5c4d
#0 191.5 Build dir: /tmp/pip-install-rcwoveti/scipy_62fc21d83ad647f3b1cac28d15cb5c4d/.mesonpy-w0ie64vn/build
#0 191.5 Build type: native build
#0 191.5 Project name: SciPy
#0 191.5 Project version: 1.10.1
#0 191.5 C compiler for the host machine: cc (gcc 10.3.1 "cc (Alpine 10.3.1_git20210424) 10.3.1 20210424")
#0 191.5 C linker for the host machine: cc ld.bfd 2.35.2
#0 191.5 C++ compiler for the host machine: c++ (gcc 10.3.1 "c++ (Alpine 10.3.1_git20210424) 10.3.1 20210424")
#0 191.5 C++ linker for the host machine: c++ ld.bfd 2.35.2
#0 191.5 Cython compiler for the host machine: cython (cython 0.29.33)
#0 191.5 Host machine cpu family: x86_64
#0 191.5 Host machine cpu: x86_64
#0 191.5 Compiler for C supports arguments -Wno-unused-but-set-variable: YES
#0 191.5 Compiler for C supports arguments -Wno-unused-function: YES
#0 191.5 Compiler for C supports arguments -Wno-conversion: YES
#0 191.5 Compiler for C supports arguments -Wno-misleading-indentation: YES
#0 191.5 Compiler for C supports arguments -Wno-incompatible-pointer-types: YES
#0 191.5 Library m found: YES
#0 191.5
#0 191.5 ../../meson.build:63:0: ERROR: Unknown compiler(s): [['gfortran'], ['flang'], ['nvfortran'], ['pgfortran'], ['ifort'], ['ifx'], ['g95']]
#0 191.5 The following exception(s) were encountered:
#0 191.5 Running `gfortran --version` gave "[Errno 2] No such file or directory: 'gfortran'"
#0 191.5 Running `gfortran -V` gave "[Errno 2] No such file or directory: 'gfortran'"
#0 191.5 Running `flang --version` gave "[Errno 2] No such file or directory: 'flang'"
#0 191.5 Running `flang -V` gave "[Errno 2] No such file or directory: 'flang'"
#0 191.5 Running `nvfortran --version` gave "[Errno 2] No such file or directory: 'nvfortran'"
#0 191.5 Running `nvfortran -V` gave "[Errno 2] No such file or directory: 'nvfortran'"
#0 191.5 Running `pgfortran --version` gave "[Errno 2] No such file or directory: 'pgfortran'"
#0 191.5 Running `pgfortran -V` gave "[Errno 2] No such file or directory: 'pgfortran'"
#0 191.5 Running `ifort --version` gave "[Errno 2] No such file or directory: 'ifort'"
#0 191.5 Running `ifort -V` gave "[Errno 2] No such file or directory: 'ifort'"
#0 191.5 Running `ifx --version` gave "[Errno 2] No such file or directory: 'ifx'"
#0 191.5 Running `ifx -V` gave "[Errno 2] No such file or directory: 'ifx'"
#0 191.5 Running `g95 --version` gave "[Errno 2] No such file or directory: 'g95'"
#0 191.5 Running `g95 -V` gave "[Errno 2] No such file or directory: 'g95'"
#0 191.5
#0 191.5 A full log can be found at /tmp/pip-install-rcwoveti/scipy_62fc21d83ad647f3b1cac28d15cb5c4d/.mesonpy-w0ie64vn/build/meson-logs/meson-log.txt
#0 191.5 [end of output]
#0 191.5
#0 191.5 note: This error originates from a subprocess, and is likely not a problem with pip.
#0 191.5 error: metadata-generation-failed
#0 191.5
#0 191.5 × Encountered error while generating package metadata.
#0 191.5 ╰─> See above for output.
os: windows11 wsl ubuntu20.04 执行 docker compose up 出错如下