mac下应该不需要安装python-dev的
可以使用pkg-config --cflags --libs python2 得到 -I/usr/include/python2.7 -lpython2.7
或者使用
$(pkg-config --cflags --libs python2)
但是貌似-L:没什么用
mac下应该不需要安装python-dev的
可以使用pkg-config --cflags --libs python2 得到 -I/usr/include/python2.7 -lpython2.7
或者使用
$(pkg-config --cflags --libs python2)
但是貌似-L:没什么用
本文标题:python调用c模块 c模块中include “python。
本文链接:https://www.haomeiwen.com/subject/dxbvbftx.html
网友评论