phoronix-test-suite / test-profiles

A read-only Git copy of the OpenBenchmarking.org test profiles.
Other
68 stars 80 forks source link

`scikit-learn-2.x` Tech Note: scikit-learn will not install on some Linux distros #298

Closed tad4 closed 10 months ago

tad4 commented 10 months ago

For PTS users attempting to run v2 (or later) of the scikit-learn test profile, please note that some Linux distributions do not provide a version of the Meson Build System that meets the minimum requirements of scikit-learn. In this scenario, when PTS attempts to install scikit-learn users may encounter the following:

Processing /home/tad/.phoronix-test-suite/installed-tests/pts/scikit-learn-2.0.0/scipy
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [3 lines of output]

      ('\x1b[31m',)meson-python: error: Could not find meson version 0.63.3 or newer, found 0.61.2
      ('\x1b[31m',)meson-python: error: .
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

The scikit-learn-2.0.0 test profile uses scikit-learn v1.2.2 which requires v0.63.3 of the Meson Build System or later. The example, above, was attempted on Ubuntu 22.04 LTS which provides a version of meson that is not compatible with scikit-learn v1.2.2.

Who is affected by this issue?

Users of Linux distributions or python releases that provide packaged versions of meson < 0.63.3; e.g,—