Paddle-Lite icon indicating copy to clipboard operation
Paddle-Lite copied to clipboard

pc端加python编译后,import lite时报错undefined symbol: PyCMethod_New

Open BrilliantSunshine-h opened this issue 1 year ago • 3 comments

版本、预测库信息: 1)Paddle Lite 版本:develop和v2.12均有尝试 2)Host 环境:ubuntu20.04 3)运行设备环境:pc端 x86 4)gcc 版本 9.4.0,cmake 版本 3.16.3 源码编译命令: ./lite/tools/build_linux.sh --arch=x86 --with_extra=ON --with_python=ON

使用源码编译获得的lite.so,在from paddlelite.lite import * 时报错: Import Error:/xxx/paddlelite/lite.so: undefined symbol: PyCMethod_New

创建了几个虚拟环境,更换python版本3.5-3.8,没能解决这个问题

BrilliantSunshine-h avatar Mar 07 '23 07:03 BrilliantSunshine-h

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网文档常见问题历史Issue来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQ and Github Issue to get the answer.Have a nice day!

paddle-bot[bot] avatar Mar 07 '23 07:03 paddle-bot[bot]

指定python_version

mjp9527 avatar Mar 14 '23 03:03 mjp9527

如何解决?

xuxiansheng2018 avatar Jan 09 '24 10:01 xuxiansheng2018