Git Product home page Git Product logo

Comments (15)

rkshuai avatar rkshuai commented on August 15, 2024 5

@zzdang 修改pse/include/pybind11/detail/common.h中的第112~114:
#include <python2.7/Python.h>
#include <python2.7/frameobject.h>
#include <python2.7/pythread.h>
为:
#include <Python.h>
#include <frameobject.h>
#include <pythread.h>

from psenet.

Tian14267 avatar Tian14267 commented on August 15, 2024 2

问题已经解决。在用python3编译的时候,需要确定自己的python是具体哪个版本。python3.5,还是python3.6。具体可以查看路径:/usr/include/ 在这个文件夹内找python的文件(python2.7或者python3.5)。然后按照下面方法修改:
修改pse/include/pybind11/detail/common.h中的第112~114:
#include <python2.7/Python.h>
#include <python2.7/frameobject.h>
#include <python2.7/pythread.h>
为:
#include <python3.5/Python.h>
#include <python3.5/frameobject.h>
#include <python3.5/pythread.h>

因为我的python是3.5版本。具体可以根据自己的版本修改。需要用到的"Python.h"、“frameobject.h”、“pythread.h”都在/usr/include/python3.5/ 这个文件夹里面。改完之后编译就ok了。

from psenet.

WenmuZhou avatar WenmuZhou commented on August 15, 2024

py2没问题

from psenet.

zzdang avatar zzdang commented on August 15, 2024

有用python3遇到这个错该怎么解决,求助呀

from psenet.

WenmuZhou avatar WenmuZhou commented on August 15, 2024

参考这个makefile
https://github.com/WenmuZhou/PSENet.pytorch/blob/master/author_pse/Makefile

from psenet.

WeihongM avatar WeihongM commented on August 15, 2024

@whai362 @WenmuZhou
Hello, I met also make error, I can compile the adaptor.so alone successsfully, However when I want to import the .so file into python file, it throw the error.
ImportError: /opt/intel/mkl/lib/intel64/libmkl_sequential.so: undefined symbol: mkl_sparse_s_a dd_ker1_i8

Environment:
python2.7
pytorch 0.4.1

from psenet.

tangsipeng avatar tangsipeng commented on August 15, 2024

@zzdang 请问最后解决了吗?我也遇到这个问题

from psenet.

zzdang avatar zzdang commented on August 15, 2024

@tangsipeng ,按照rkshuai 说的,可以解决问题

from psenet.

tangsipeng avatar tangsipeng commented on August 15, 2024

@zzdang 谢谢,我也解决了。测试速度只有1fps,你呢?

from psenet.

wangshuai66666 avatar wangshuai66666 commented on August 15, 2024

@zzdang 谢谢,我也解决了。测试速度只有1fps,你呢?

我的fps才0.65呢 GPU K40c 12G

from psenet.

Tian14267 avatar Tian14267 commented on August 15, 2024

请问你python3编译成功了吗?我的一直报错啊。可以有空帮忙看一下吗
#88
@zzdang @tangsipeng @WenmuZhou @WeihongM

from psenet.

FredlinT avatar FredlinT commented on August 15, 2024

@zzdang 修改pse/include/pybind11/detail/common.h中的第112~114:
#include <python2.7/Python.h>
#include <python2.7/frameobject.h>
#include <python2.7/pythread.h>
为:
#include <Python.h>
#include <frameobject.h>
#include <pythread.h>

我改完之后,遇到了include/pybind11/detail/common.h:116:20: fatal error: Python.h: No such file or directory的问题

from psenet.

c-cn avatar c-cn commented on August 15, 2024

@zzdang 修改pse/include/pybind11/detail/common.h中的第112~114:
#include <python2.7/Python.h>
#include <python2.7/frameobject.h>
#include <python2.7/pythread.h>
为:
#include <Python.h>
#include <frameobject.h>
#include <pythread.h>

我改完之后,遇到了include/pybind11/detail/common.h:116:20: fatal error: Python.h: No such file or directory的问题

同样的问题,解决了吗?

from psenet.

Tian14267 avatar Tian14267 commented on August 15, 2024

@zzdang 修改pse/include/pybind11/detail/common.h中的第112~114:
#include <python2.7/Python.h>
#include <python2.7/frameobject.h>
#include <python2.7/pythread.h>
为:
#include <Python.h>
#include <frameobject.h>
#include <pythread.h>

我改完之后,遇到了include/pybind11/detail/common.h:116:20: fatal error: Python.h: No such file or directory的问题

请问你解决了吗?我也遇到Python.h: No such file or directory的问题。请问怎么解决?

from psenet.

Tian14267 avatar Tian14267 commented on August 15, 2024

@zzdang 修改pse/include/pybind11/detail/common.h中的第112~114:
#include <python2.7/Python.h>
#include <python2.7/frameobject.h>
#include <python2.7/pythread.h>
为:
#include <Python.h>
#include <frameobject.h>
#include <pythread.h>

我改完之后,遇到了include/pybind11/detail/common.h:116:20: fatal error: Python.h: No such file or directory的问题

同样的问题,解决了吗?

请问你解决了嘛

from psenet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.