栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

deepstream6.0 python环境安装

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

deepstream6.0 python环境安装

1.下载docker镜像

在官方网址可以选择可以选择合适的版本:https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_docker_containers.html

docker pull nvcr.io/nvidia/deepstream:6.0-triton
2.启动容器
nvidia-docker run --shm-size=12g --ulimit memlock=-1 --ulimit stack=67108864 -it --name ds-demo nvcr.io/nvidia/deepstream:6.0-triton
3.安装库
apt-get update
apt install -y git python-dev python3 python3-pip python3.8-dev cmake g++ build-essential libglib2.0-dev libglib2.0-dev-bin python-gi-dev libtool m4 autoconf automake

这个镜像默认python版本3.8。

4.克隆python示例项目及子项目
cd /opt/nvidia/deepstream/deepstream-6.0/sources
export GIT_SSL_NO_VERIFY=true 
git clone https://github.com/NVIDIA-AI-IOT/deepstream_python_apps.git
cd deepstream_python_apps
git submodule update --init

如果克隆慢,手动用cnpmjs.org镜像下载

cd /opt/nvidia/deepstream/deepstream-6.0/sources
export GIT_SSL_NO_VERIFY=true 
git clone https://github.com.cnpmjs.org/NVIDIA-AI-IOT/deepstream_python_apps.git
cd deepstream_python_apps/3rdparty
rm -rf *
git clone https://github.com.cnpmjs.org/GStreamer/gst-python.git
git clone https://github.com.cnpmjs.org/pybind/pybind11.git
5. 安装gst-python
cd gst-python
git checkout 1a8f48a
./autogen.sh
make
make install
6. 编译安装python-binding
cd /opt/nvidia/deepstream/deepstream-6.0/sources/deepstream_python_apps/bindings
mkdir build
cd build
cmake ..  -DPYTHON_MAJOR_VERSION=3 -DPYTHON_MINOR_VERSION=8
make
pip3 install ./pyds-1.1.0-py3-none*.whl

这里注意python的版本是3.8

参考:https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/blob/master/bindings/README.md
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/580597.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号