当我运行model.py时,它说OSError:没有具有预期扩展名的文件,但我已将.so文件放在同一文件夹下

2024-09-23 20:24:43 发布

您现在位置:Python中文网/ 问答频道 /正文

这是我的代码:

dll = np.ctypeslib.load_library('render_balls_so', '.')

我得到了这个错误:

Traceback (most recent call last): File "/home/name/Documents/PointNet/show_3d_ball.py", line 22, in dll = np.ctypeslib.load_library('render_balls_so', '.') File "/home/name/.local/lib/python3.6/site-packages/numpy/ctypeslib.py", line 155, in load_library raise OSError("no file with expected extension") OSError: no file with expected extension


Tags: nameinpyhomesonplinelibrary