I tired following:
source .virtualenvs/application/bin/activate
cd .virtualenvs/
export CFLAGS="-I/usr/local/include"
export CXXFLAGS="-I/usr/local/include"
export MAX_CONCURRENCY=1
export CPUCOUNT=1
export MAKEFLAGS="-j1"
export CC=gcc
CMAKE_BUILD_PARALLEL_LEVEL=1
export LD_LIBRARY_PATH=/usr/local/lib/gcc13
export CXX=g++
cpuset -l 0 pip install scikit-learn==1.3.2
scipy/spatial/transform/rotation.cpython-311.so.p/rotation.c:67603:1: fatal error: error writing to /tmp//ccGmfkrm.s: Disc quota exceeded
67603 | }
| ^
compilation terminated.
[844/1383] Compiling C object scipy/cluster/hierarchy.cpython-311.so.p/meson-generatedhierarchy.c.o
FAILED: scipy/cluster/hierarchy.cpython-311.so.p/meson-generatedhierarchy.c.o
gcc -Iscipy/cluster/hierarchy.cpython-311.so.p -Iscipy/cluster -I../scipy/cluster -I../../../pip-build-env-zp5tp_bk/overlay/lib/python3.11/site-packages/numpy/core/include -I/usr/local/include/python3.11 -I/usr/home/wuliu/test/lib/python3.11/site-packages/pybind11/include -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c17 -O3 -Wno-unused-but-set-variable -Wno-unused-function -Wno-conversion -Wno-misleading-indentation -fPIC -DNPY_NO_DEPRECATED_API=NPY_1_9_API_VERSION -DCYTHON_CCOMPLEX=0 -MD -MQ scipy/cluster/hierarchy.cpython-311.so.p/meson-generatedhierarchy.c.o -MF scipy/cluster/hierarchy.cpython-311.so.p/meson-generatedhierarchy.c.o.d -o scipy/cluster/hierarchy.cpython-311.so.p/meson-generated__hierarchy.c.o -c scipy/cluster/hierarchy.cpython-311.so.p/hierarchy.c
scipy/cluster/hierarchy.cpython-311.so.p/_hierarchy.c:48237:1: fatal error: error writing to /tmp//cckFxxyu.s: Invalid argument
48237 | }
| ^
compilation terminated.
ninja: build stopped: subcommand failed.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.