whai362 / PSENet

Official Pytorch implementations of PSENet.
Apache License 2.0
1.17k stars 345 forks source link

python3.6的跑不起来.... #152

Closed HongChow closed 3 years ago

HongChow commented 4 years ago

先是 include/pybind11/detail/common.h:113:10: fatal error: Python.h: No such file or directory

include

      ^~~~~~~~~~

compilation terminated. make: *** [adaptor.so] Error 1 这个错误 Makefile:10: recipe for target 'adaptor.so' failed

ingale726 commented 4 years ago

linux下跑

HongChow commented 4 years ago

linux下跑

一直用的Ubuntu

HongChow commented 4 years ago

3.6下面好像也是有这个头文件的: (base) hong@ZM:/usr/include/python3.6$ ll Python.h -rw-r--r-- 1 root root 3221 4月 18 09:56 Python.h

fxwfzsxyq commented 4 years ago

common.h这个文件有三行修改一下就行

HongChow commented 4 years ago

common.h这个文件有三行修改一下就行

改好了,改成了python的安装对应的头文件

RoseSakurai commented 3 years ago

现在有python3版本啦,感兴趣的请关注。