Error on building pesq "pesq/cypesq.c:6:10: fatal error: Python.h: No such file or directory"
cnh2769 opened this issue · comments
Error encountered while "pip install -r requrements.txt"
Solution:
We need to install libpythonX.X-dev to build pesq.
The version should be followed your SYSTEM PYTHON VERSION, not conda python version, because pesq will build by gcc on your system
ex)
(mdx-net) cnh2769@SPV02:~/_Project/mdx-net$ which python3
/home/cnh2769/anaconda3/envs/mdx-net/bin/python3
(mdx-net) cnh2769@SPV02:~/_Project/mdx-net$ python3 --version
Python 3.8.11
(mdx-net) cnh2769@SPV02:~/Project/mdx-net$ /usr/bin/python3 --version
Python 3.7.11
(mdx-net) cnh2769@SPV02:~/Project/mdx-net$ sudo apt install libpython3.7-dev
Thank you for sharing this. I will add this in read me (or you could make a PR if you want).