caishanli / pyncnn

python wrapper of ncnn with pybind11

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

import error

huoshuai0531 opened this issue · comments

编译完成后 在./pyncnn/python路径下 import ncnn没有报错,但是,换个路径出现ModuleNotFoundError,这个问题的原因大概是什么?

把编译后的pyncnn/python/ncnn.egg-info/和pyncnn/python/ncnn/文件夹拷贝到python的dist-packages中

for me
cp -r pyncnn/python/ncnn.egg-info/ /usr/local/lib/python3.6/dist-packages
cp -r pyncnn/python/ncnn/ /usr/local/lib/python3.6/dist-packages