Bo Master's system is ubuntu14.04, has been used for some time is python2.7, recently because of business needs to upgrade to python3.6.
In the process of upgrading your project from python2.7 to python3.6, you are involved in C + + file encapsulation to Python's recompile configuration.
Error during compilation:
Boost/python/detail/wrap_python.hpp:50:23:fatal error:pyconfig.h: No file or directory
The reason for this is that when the python3.6 is installed, the header file is not installed, and the solution is to enter at the terminal:
sudo apt-get Python3.6-dev
It is recommended that the installation of python3.6 be dependent on installation to avoid unnecessary hassles.
In addition, recommend a Python2 code upgrade to the Python3 Code tool 2TO3, it is the Python's own upgrade tool (to solve some of the upgrade issues), generally in the Python installation directory can be found in the specific use of the following command to view
2to3--help