当前位置:网站首页>arm64麒麟安装paddlehub(国产化)注意事项
arm64麒麟安装paddlehub(国产化)注意事项
2022-08-03 05:16:00 【stay_foolish12】
python 版本 3.7
pip install paddlehub
需要 onnx<=0.9,进行源码安装
基础环境:
yum install cmake
yum install protobuf-compiler protobuf # libprotoc-dev
yum install make gcc gcc-c++
pip3 install --upgrade cmake==3.23.2
yum install boost
pip3 install pybind11
源码安装onnx:
git clone https://github.com/onnx/onnx.git
cd onnx
git submodule update --init --recursive
python3 setup.py install
error: onnx/third_party/pybind11/detail/common.h:215:10: fatal error: Python.h: No such file or directory
yum -y install python3-devel python-devel # (ubuntu: python-dev)
参考:https://blog.csdn.net/weixin_35757704/article/details/124852304
https://www.csdn.net/tags/Mtjacg3sOTI2LWJsb2cO0O0O.html
import paddlehub as hub
File “/usr/local/lib/python3.7/site-packages/paddlehub/init.py”, line 31, in
from paddlehub import datasets
File “/usr/local/lib/python3.7/site-packages/paddlehub/datasets/init.py”, line 15, in
from paddlehub.datasets.canvas import Canvas
File “/usr/local/lib/python3.7/site-packages/paddlehub/datasets/canvas.py”, line 23, in
from paddlehub.vision.utils import get_img_file
File “/usr/local/lib/python3.7/site-packages/paddlehub/vision/utils.py”, line 18, in
import cv2
File “/usr/local/lib64/python3.7/site-packages/cv2/init.py”, line 181, in
bootstrap()
File “/usr/local/lib64/python3.7/site-packages/cv2/init.py”, line 153, in bootstrap
native_module = importlib.import_module(“cv2”)
File “/usr/lib64/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
yum install mesa-libGL
边栏推荐
猜你喜欢
随机推荐
动态调整web主题(2) 萃取篇
飞机大战完整版
【myPow,2次幂,3次幂..代码实现】
传说中可“免费白拿”的无线路由器 - 斐讯 K2 最简单刷 breed 与第三方固件教程
ss-5.consul服务端+生产者+消费者
【按位取反,逻辑操作符,条件操作符,逗号表达式,下标引用,函数调用,结构体】操作符后续+表达式求值(上)
浏览器多线程离屏渲染压缩打包方案
Djiango第二次培训
-角谷猜想-
生活原则。
7.8(6)
`monorepo` 中 `hoist` 机制导致加载配置文件路径的变化
令人愉快的 Nuxt3 教程 (二): 快速轻松地搭建博客
Djiango第四次培训笔记
【特征选取】计算数据点曲率
网卡软中断过高问题优化总结
【XSS,文件上传,文件包含】
【反弹shell与提权】
-寻找鞍点-
【扫雷】多方法超详细 7.28