The crlibm doesn't look like it can be compiled and installed correctly.
I want to install the pyinterval whcih depends on crlibm, but there's something wrong that look like the crlibm can't be cmpiled correctly.
Building wheels for collected packages: crlibm
Building wheel for crlibm (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [24 lines of output]
running bdist_wheel
running build
running build_ext
using unix compiler
building 'crlibm' extension
creating build
creating build/temp.linux-x86_64-cpython-37
creating build/temp.linux-x86_64-cpython-37/ext
gcc -pthread -B /home/yangjunfeng/anaconda3/envs/safedrl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/crlibm/include -I/home/yangjunfeng/anaconda3/envs/safedrl/include/python3.7m -c ext/crlibmmodule.c -o build/temp.linux-x86_64-cpython-37/ext/crlibmmodule.o
ext/crlibmmodule.c:7:10: fatal error: crlibm.h: 没有那个文件或目录
7 | #include "crlibm.h"
| ^~~~~~~~~~
compilation terminated.
invoking: ['make', 'crlibm-notest']
(cd crlibm; CFLAGS='-fPIC' ./configure --prefix=/tmp/pip-install-imrfvn4l/crlibm_228ed1cb1f364702840ef93226ae952e/build/crlibm)
configure: error: working directory cannot be determined
make: *** [Makefile:26:crlibm/crlibm_config.h] 错误 255
building 'crlibm' extension
gcc -pthread -B /home/yangjunfeng/anaconda3/envs/safedrl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/crlibm/include -I/home/yangjunfeng/anaconda3/envs/safedrl/include/python3.7m -c ext/crlibmmodule.c -o build/temp.linux-x86_64-cpython-37/ext/crlibmmodule.o
ext/crlibmmodule.c:7:10: fatal error: crlibm.h: 没有那个文件或目录
7 | #include "crlibm.h"
| ^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for crlibm
Running setup.py clean for crlibm
Failed to build crlibm
Installing collected packages: python-intervals, mpmath, crlibm, contexttimer, colour, threadpoolctl, tenacity, sympy, simpy, python-utils, pyparsing, kiwisolver, joblib, fonttools, cycler, scikit-learn, progressbar2, plotly, matplotlib, jsonpickle
Running setup.py install for crlibm ... error
error: subprocess-exited-with-error
× Running setup.py install for crlibm did not run successfully.
│ exit code: 1
╰─> [26 lines of output]
running install
/home/yangjunfeng/anaconda3/envs/safedrl/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
running build
running build_ext
using unix compiler
building 'crlibm' extension
creating build
creating build/temp.linux-x86_64-cpython-37
creating build/temp.linux-x86_64-cpython-37/ext
gcc -pthread -B /home/yangjunfeng/anaconda3/envs/safedrl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/crlibm/include -I/home/yangjunfeng/anaconda3/envs/safedrl/include/python3.7m -c ext/crlibmmodule.c -o build/temp.linux-x86_64-cpython-37/ext/crlibmmodule.o
ext/crlibmmodule.c:7:10: fatal error: crlibm.h: 没有那个文件或目录
7 | #include "crlibm.h"
| ^~~~~~~~~~
compilation terminated.
invoking: ['make', 'crlibm-notest']
(cd crlibm; CFLAGS='-fPIC' ./configure --prefix=/tmp/pip-install-imrfvn4l/crlibm_228ed1cb1f364702840ef93226ae952e/build/crlibm)
configure: error: working directory cannot be determined
make: *** [Makefile:26:crlibm/crlibm_config.h] 错误 255
building 'crlibm' extension
gcc -pthread -B /home/yangjunfeng/anaconda3/envs/safedrl/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/crlibm/include -I/home/yangjunfeng/anaconda3/envs/safedrl/include/python3.7m -c ext/crlibmmodule.c -o build/temp.linux-x86_64-cpython-37/ext/crlibmmodule.o
ext/crlibmmodule.c:7:10: fatal error: crlibm.h: 没有那个文件或目录
7 | #include "crlibm.h"
| ^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> crlibm
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
so I tried to manually install crlibm from the source code with changing #include "crlibm.h" to #include "../crlibm/crlibm.h",and run python setup.py install. But it still doesn't work with some new errors occured.
The version of my python is 3.7.
The crlibm doesn't look like it can be compiled and installed correctly.
I want to install the pyinterval whcih depends on crlibm, but there's something wrong that look like the crlibm can't be cmpiled correctly.
so I tried to manually install crlibm from the source code with changing
#include "crlibm.h"to#include "../crlibm/crlibm.h",and runpython setup.py install. But it still doesn't work with some new errors occured.The version of my python is 3.7.