1.基础环境gstreamer
sudo apt install \
libssl-dev \
libgstreamer1.0-0 \
gstreamer1.0-tools \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
gstreamer1.0-libav \
libgstreamer-plugins-base1.0-dev \
libgstrtspserver-1.0-0 \
libjansson4 \
libyaml-cpp-dev \
libjsoncpp-dev \
protobuf-compiler \
gcc \
make \
git \
python3
2.驱动卸载(可选)
sudo apt -y --purge remove nvidia*
sudo apt -y --purge remove "*nvidia*"
sudo apt -y --purge remove "*nvidia*"
sudo apt -y --purge remove "*nvidia*"
sudo apt -y --purge remove "*cublas*" "cuda*"
sudo apt autoremove
重启
3.驱动安装(530)
下载地址:Official Drivers | NVIDIA
sudo ./NVIDIA-Linux-x86_64-530.41.03.run
4.cuda安装(11.8)
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/12.1.0/local_installers/cuda-repo-ubuntu2004-12-1-local_12.1.0-530.30.02-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu2004-12-1-local_12.1.0-530.30.02-1_amd64.deb
sudo cp /var/cuda-repo-ubuntu2004-12-1-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get -y install cuda
5.安装tensorrt (8.6.0-11.8)
下载地址:Log in | NVIDIA Developer
sudo dpkg -i nv-tensorrt-local-repo-ubuntu2004-8.6.0-cuda-11.8_1.0-1_amd64.deb
6.安装deepstream
sudo dpkg -i deepstream-6.3_6.3.0-1_amd64.deb
7.python 调用deepstream,tensorrt相关软件
pyds1.16
pyds-1.1.6-py3-none-linux_x86_64.whl
tensorrt 8.6
tensorrt-8.6.0-cp38-none-linux_x86_64.whl
资源在文章相关资源中下载
————————————————
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/zhoutianyou/article/details/135528185