The installation is python3.6, the boost related code is used in the project, and pyconfig.h cannot be found when compiling. I took a look at /usr/include/python3.6 and /usr/include/python3.6m, there is only one pyconfig-64.h file.
I checked the Internet and found various methods, but I can't figure it out. One of the methods can install a bunch of .h into /usr/include/python2.7, but there is still no one in the 3.6 folder. Methods as below:
1. You can first check the package containing python-devel
yum search python | grep python-devel
2. 64-bit installation python-devel.x86_64, 32-bit installation python-devel.i686, I installed here:
sudo yum install python-devel.x86_64
Inspired by this, enter the command to find the python package related to version 3.6yum search python | grep python36Found that the following should be what we want
python36u-devel.x86_64 : Libraries and header files needed for Python
Then execute the installation command:
sudo yum install python36u-devel.x86_64After the installation is complete, there will be many .h files under /usr/include/python3.6 and /usr/include/python3.6m, and the problem is solved.