python版的onnxruntime安装比较简单,就一句话
cpp版的需要从源码编译安装
首先下载
git clone --recursive https://github.com/Microsoft/onnxruntime
然后编译
cd onnxruntime
./build.sh --config Release --build_shared_lib --parallel
我这里会报错,说是cmake版本要高于3.18,而ubuntu自带的cmake只有3.16
升级之后还是3.16(已经是最新版本了)
只好自己下载cmake安装
在这里找到你想要的版本,
我选的是3.19.1,下载tar.gz文件
cd cmake-3.19.1
./bootstrap
这里会报错说找不到openSSL
那么要安装ssl库
sudo apt-get install libssl-dev
然后make
3380



被折叠的 条评论
为什么被折叠?



