psycopg: Python.h: No such file or directory

后端 未结 4 1429
野性不改
野性不改 2021-01-07 16:34

I\'m compiling psycopg2 and get the following error: Python.h: No such file or directory

How to compile it, Ubuntu12 x64.

4条回答
  •  花落未央
    2021-01-07 16:48

    Python 2:

    sudo apt-get install python-dev
    

    Python 3:

    sudo apt-get install python3-dev
    

提交回复
热议问题