psycopg: Python.h: No such file or directory

后端 未结 4 1427
野性不改
野性不改 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 17:10

    if you take a look at PostgreSQL's faq page ( http://initd.org/psycopg/docs/faq.html ) you'll see that they recommend installing pythons development package, which is usually called python-dev. You can install via

    sudo apt-get install python-dev

提交回复
热议问题