psycopg:Python.h:没有那个文件或目录 [英] psycopg: Python.h: No such file or directory

查看:61
本文介绍了psycopg:Python.h:没有那个文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编译 psycopg2 并收到以下错误:Python.h:没有那个文件或目录

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

如何编译它,Ubuntu12 x64.

How to compile it, Ubuntu12 x64.

推荐答案

Python 2:

sudo apt-get install python-dev

Python 3:

sudo apt-get install python3-dev

这篇关于psycopg:Python.h:没有那个文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆