简体   繁体   中英

error: python.h: No such file or directory

When I try to include python.h library in my code and I get:

error: python.h: No such file or directory

I tried yum install and I get:

'Package python-devel-2.6.6-36.el6.x86_64 already installed and latest version'

I added -I/usr/include/python2.6/ & -lpython2.6 to my make file.

nothing helps.

According to my installation the file is called Python.h (with capital P). Try to use #include <Python.h> instead.

您必须安装 python-dev 依赖项。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM