first install pybind11 second cd ncnn/python ' python setep.py install ' i successed in ubuntu 20.04
i follow your steps,but still has the same problem,could you give a detailed step,thx a lot!!!
Try to build ncnn withgcc-7. The detailed steps are:
export CC=<path/of/gcc-7>
export CXX=<path/of/g++7>
cd <path/to/ncnn/root/directory>
make build
cd build
cmake .. -DNCNN_PYTHON=ON
make -j8 && make install
cd ../python
python setup.py install
i follow lvhan028 commented on 26 Sep and in the last step not cd ../python python setup.py install but cd ../ pip3 install . then is ok and you can read the readme.md in the folder named "python"
9条答案
按热度按时间eaf3rand1#
pip show ncnn ?
qvk1mo1f2#
i meet same error
fcipmucu3#
this comes from the file "init.py"; in line 15 ------> [ from .ncnn import *], but no solution was found.
qgelzfjb4#
first install pybind11
second cd ncnn/python ' python setep.py install '
i successed in ubuntu 20.04
raogr8fs5#
first install pybind11
second cd ncnn/python ' python setep.py install '
i successed in ubuntu 20.04
i follow your steps,but still has the same problem,could you give a detailed step,thx a lot!!!
pxyaymoc6#
first install pybind11
second cd ncnn/python ' python setep.py install '
i successed in ubuntu 20.04
i follow your steps,but still has the same problem,could you give a detailed step,thx a lot!!!
I guess you forget make the NCNN , you should first make NCNN in the markdown file in NCNN/python you can see more
axkjgtzd7#
first install pybind11
second cd ncnn/python ' python setep.py install '
i successed in ubuntu 20.04
i follow your steps,but still has the same problem,could you give a detailed step,thx a lot!!!
Try to build ncnn withgcc-7. The detailed steps are:
uttx8gqw8#
i follow lvhan028 commented on 26 Sep
and in the last step not cd ../python
python setup.py install
but cd ../
pip3 install .
then is ok and you can read the readme.md in the folder named "python"
aiazj4mn9#
pybind11
ncnn