PythonLibs is detecting by default 3.5.2(libpython3.5m.so) How, we can chage it to python2.7 (libpython2.7.so)?
sainisanjay opened this issue · comments
Sanjay Saini commented
I build the PyOpenPose successfully and its detecting PythonLibs by default 3.5.2.
Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.5m.so (found version "3.5.2")
However, when i am trying to run the demo by running python ./OpLoop.py
i am getting error:
import PyOpenPose as OP
ImportError: /home/cvsion/Deeplearning/Openpose_old/PyOpenPose-master/build/PyOpenPoseLib/PyOpenPose.so: undefined symbol: _ZN5boost6python6detail11init_moduleER11PyModuleDefPFvvE
I am using Boost version 1.58.0. I have tried with un-installing Boost and install again but getting same error.
Sanjay Saini commented
Issue solved by changing
find_package(PythonLibs REQUIRED) to find_package(PythonLibs 2.7 REQUIRED)