一、下载安装包

1.1 国内使用代理地址

https://gh-proxy.com/

1.2 代理地址中输入github地址

https://github.com/microsoft/onnxruntime/releases

1.3 选择特定版本进行下载。

我选择的是 onnxruntime-linux-x64-1.24.2.tgz,你可以自行选择其他版本。

二、安装

2.1 放到目标目录中并完成解压

/usr/local/onnxruntime-linux-x64-1.24.2.tgz
# 解压
cd /usr/local/
tar -zxvf onnxruntime-linux-x64-1.24.2.tgz
mv onnxruntime-linux-x64-1.24.2 onnxruntime

2.2 配置环境变量

vi /etc/profile
# onnxruntime
export ONNX_HOME=/usr/local/onnxruntime
source /etc/profile

2.3 创建软连接

cd /usr/local/onnxruntime/lib

ln -s /usr/local/onnxruntime/lib/libonnxruntime.so.1.24.2 /usr/local/lib/libonnxruntime.so

ln -s /usr/local/onnxruntime/lib/libonnxruntime.so.1.24.2 /usr/local/lib/libonnxruntime.so.1

cafebabe
140 声望14 粉丝

spring cloud dubbo openresty kong gin beego