Ubuntu18.04 Deepstream5.1运行环境搭建并成功运行demo

安装必要的基础环境

安装Anaconda并添加环境变量:

sudo vim ~/.bashrc
export PATH=~/anaconda3/bin:$PATH

创建虚拟环境:conda create -n 名字 python=需要的版本
更新pip: python -m pip install --upgrade pip
更换conda和pip为国内源。
我的系统为Ubuntu 18.04,显卡为Nvidai Tesla T4(根据自己的显卡型号去灵活选择相关的驱动和CUDA等版本)

需要安装的运行环境

  • Ubuntu 18.04
  • GStreamer 1.14.1
  • NVIDIA Driver 460.32
  • CUDA 11.1
  • cuDNN 8.0.5
  • cuBLAS
  • TensorRT 7.2.3

1.清除原安装环境:

sudo rm -rf /usr/local/deepstream /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnv* /usr/bin/deepstream* /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libnvdsgst*
/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream* /opt/nvidia/deepstream/deepstream*
sudo rm -rf /usr/lib/x86_64-linux-gnu/libv41/plugins/libcuvidv4l2_plugin.so

如果安装Deepstream之前版本,则先卸载

To remove DeepStream 4.0 or later installations:
Open the uninstall.sh file in /opt/nvidia/deepstream/deepstream/
Set PREV_DS_VER as 4.0
Run the following script as sudo: ./uninstall.sh

2.在安装DeepStream SDK之前,请输入以下命令安装必要的软件包

sudo apt install \
libssl1.0.0 \
libgstreamer1.0-0 \
gstreamer1.0-tools \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
gstreamer1.0-libav \
libgstrtspserver-1.0-0 \
libjansson4

3.下载和安装NVIDIA驱动460.32 驱动下载

chmod 755 NVIDIA
  • 3
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值