Ubuntu - Linking boost.python - Fatal error: pyconfig cannot be found

后端 未结 7 821
走了就别回头了
走了就别回头了 2020-12-08 04:28

Having some issues, now I have read the following:

hello world python extension in c++ using boost?

I have tried installing boost onto my desktop, and, done

7条回答
  •  情书的邮戳
    2020-12-08 04:50

    There two possible causes for this symptom: 1. you don't have python-dev installed. 2. you have python-dev installed and your include path is incorrectly configured, which the above posting provide a solution. In my case, I was installing boost, and it is looking for the pyconfig.h header file that is missing in my ubuntu:

    The solution is

    apt-get install python-dev
    

    In other linux flavors, you have to figure out how to install python header.

提交回复
热议问题