According to https://docs.serv00.com/Python/#troubleshooting
What I ran before pip install:
export CFLAGS="-I/usr/local/include"
export CXXFLAGS="-I/usr/local/include"
export MAX_CONCURRENCY=1
export CPUCOUNT=1
export MAKEFLAGS="-j1"
A pip compile problem would occur after a few minutes:
[wukong01@s11]:<~/projects/my_proj>cpuset -l 0 ~/.virtualenvs/py3.10/bin/pip wheel --use-pep517 "grpcio (==1.66.1)"
here's some logs:
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/tmp/pip-build-env-9q7bq7rk/overlay/lib/python3.10/site-packages/setuptools/_distutils/unixccompiler.py", line 200, in _compile
self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
File "/tmp/pip-wheel-ouwnuk7p/grpcio_162baa9be4474d5fb1f818628c96a167/src/python/grpcio/_spawn_patch.py", line 58, in _commandfile_spawn
_classic_spawn(self, command, **kwargs)
File "/tmp/pip-build-env-9q7bq7rk/overlay/lib/python3.10/site-packages/setuptools/_distutils/ccompiler.py", line 1045, in spawn
spawn(cmd, dry_run=self.dry_run, **kwargs)
File "/tmp/pip-build-env-9q7bq7rk/overlay/lib/python3.10/site-packages/setuptools/_distutils/spawn.py", line 72, in spawn
raise DistutilsExecError(
distutils.errors.DistutilsExecError: command '/usr/local/bin/cc' failed: Resource temporarily unavailable