绝大部分参考https://blog.csdn.net/qq_41336087/article/details/129661850
非orin可以参考https://blog.csdn.net/JineD/article/details/131201121
报错显卡驱动安装535没法安装、原始是和l4t-cuda的部分文件冲突
Options marked [*] produce a lot of output - pipe it through ‘less’ or
‘more’ ! nvidia@nvidia-desktop:/var/cache/apt/archives$ sudo dpkg -i
–force-overwrite libnvidia-compute-535_535.171.04-0ubuntu0.20.04.1_arm64.deb (Reading
database … 255446 files and directories currently installed.)
Preparing to unpack
libnvidia-compute-535_535.171.04-0ubuntu0.20.04.1_arm64.deb …
Unpacking libnvidia-compute-535:arm64 (535.171.04-0ubuntu0.20.04.1)
… dpkg: warning: overriding problem because --force enabled: dpkg:
warning: trying to overwrite ‘/usr/lib/aarch64-linux-gnu/libcuda.so’,
which is also in package nvidia-l4t-cuda 35.4.1-20230801124926 Setting
up libnvidia-compute-535:arm64 (535.171.04-0ubuntu0.20.04.1) …
Processing triggers for libc-bin (2.31-0ubuntu9.9) …
nvidia@nvidia-desktop:/var/cache/apt/archives$ sudo dpkg -i
–force-overwrite nvidia-utils-535_535.171.04-0ubuntu0.20.04.1_arm64.deb (Reading
database … 255467 files and directories currently installed.)
Preparing to unpack
nvidia-utils-535_535.171.04-0ubuntu0.20.04.1_arm64.deb … Unpacking
nvidia-utils-535 (535.171.04-0ubuntu0.20.04.1) over
(535.171.04-0ubuntu0.20.04.1) … Setting up nvidia-utils-535
(535.171.04-0ubuntu0.20.04.1) … Processing triggers for man-db
(2.9.1-1) … nvidia@nvidia-desktop:/var/cache/apt/archives$ sudo dpkg
-i --force-overwrite libnvidia-extra-535_535.171.04-0ubuntu0.20.04.1_arm64.deb (Reading
database … 255467 files and directories currently installed.)
Preparing to unpack
libnvidia-extra-535_535.171.04-0ubuntu0.20.04.1_arm64.deb …
Unpacking libnvidia-extra-535:arm64 (535.171.04-0ubuntu0.20.04.1) …
dpkg: warning: overriding problem because --force enabled: dpkg:
warning: trying to overwrite
‘/usr/lib/aarch64-linux-gnu/gbm/nvidia-drm_gbm.so’, which is also in
package nvidia-l4t-gbm 35.4.1-20230801124926 Setting up
libnvidia-extra-535:arm64 (535.171.04-0ubuntu0.20.04.1) … Processing
triggers for libc-bin (2.31-0ubuntu9.9) …
nvidia@nvidia-desktop:/var/cache/apt/archives$ sudo dpkg -i
–force-overwrite libnvidia-gl-535_535.171.04-0ubuntu0.20.04.1_arm64.deb (Reading
database … 255473 files and directories currently installed.)
Preparing to unpack
libnvidia-gl-535_535.171.04-0ubuntu0.20.04.1_arm64.deb … Unpacking
libnvidia-gl-535:arm64 (535.171.04-0ubuntu0.20.04.1) … dpkg:
warning: overriding problem because --force enabled: dpkg: warning:
trying to overwrite ‘/usr/share/glvnd/egl_vendor.d/10_nvidia.json’,
which is also in package nvidia-l4t-3d-core 35.4.1-20230801124926
直接覆写
sudo dpkg -i --force-overwrite /var/cache/apt/archives/nvidia-340_340.107-0ubuntu0~gpu18.04.1_amd64.deb
//注意最后 /var…amd64.deb 部分,是你报错误的文件路径名称
参考:https://www.cnblogs.com/xingboy/p/15770950.html
pytorch:
必须要用特殊版本
参考https://blog.csdn.net/qq_44235661/article/details/134105151
链接:https://pan.baidu.com/s/1bvYujHmJFkGCztC_ymcDFw
提取码:eqeq
onnx:
安装失败:cmake版本不对
参考https://blog.csdn.net/qq_40541102/article/details/130086491
ONNX_Runtime
下载地址:https://elinux.org/Jetson_Zoo#ONNX_Runtime
找对应版本1.12
参考
https://blog.csdn.net/pvmsmfchcs/article/details/134694477
onnxruntime-gpu https://zhuanlan.zhihu.com/p/661511110
https://www.cnblogs.com/shaoxx333/p/17044934.html#_label1