deepstream版本6.0.1
硬件:nvidia jetson Xavier nx 盒子,ubuntu18.06
pip install pyds-1.1.1-py3-none-linux_aarch64.whl
碰到问题:
- ERROR: Command errored out with exit status 1:
- command: /home/nvidia/anaconda3/envs/python36/bin/python3.6 /home/nvidia/anaconda3/envs/python36/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmp7f743f73
- cwd: /tmp/pip-install-dm677sod/pycairo_73b73fdb1fa1410c9a43f67cc79ed6d4
- Complete output (15 lines):
- running bdist_wheel
- running build
- running build_py
- creating build
- creating build/lib.linux-aarch64-3.6
- creating build/lib.linux-aarch64-3.6/cairo
- copying cairo/__init__.py -> build/lib.linux-aarch64-3.6/cairo
- copying cairo/__init__.pyi -> build/lib.linux-aarch64-3.6/cairo
- copying cairo/py.typed -> build/lib.linux-aarch64-3.6/cairo
- running build_ext
- Package cairo was not found in the pkg-config search path.
- Perhaps you should add the directory containing `cairo.pc'
- to the PKG_CONFIG_PATH environment variable
- No package 'cairo' found
- Command '['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']' returned non-zero exit status 1.
解决方法:
apt-get install libcairo2-dev
pip install pycairo -U
安装完后,在执行:
- pip install pyds-1.1.1-py3-none-linux_aarch64.whl
-
-
- WARNING: The directory '/home/nvidia/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
- Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
- Processing ./pyds-1.1.1-py3-none-linux_aarch64.whl
- Collecting PyGObject
- Downloading http://mirrors.aliyun.com/pypi/packages/41/d0/7eaebdca0723b267b96a8b7de2743cc223fbb47f651346b3e9b768acf8dd/PyGObject-3.42.1.tar.gz (718 kB)
- |████████████████████████████████| 718 kB 249 kB/s
- Installing build dependencies ... done
- Getting requirements to build wheel ... done
- Preparing metadata (pyproject.toml) ... done
- Collecting pgi
- Downloading http://mirrors.aliyun.com/pypi/packages/ed/92/60411ba83f86fa128932466e7ffc86d806d075da64c04d6d45c99a08f4dc/pgi-0.0.11.2.tar.gz (239 kB)
- |████████████████████████████████| 239 kB 244 kB/s
- Preparing metadata (setup.py) ... done
- Requirement already satisfied: pycairo>=1.16.0 in /home/nvidia/anaconda3/envs/python36/lib/python3.6/site-packages (from PyGObject->pyds==1.1.1) (1.20.1)
- Building wheels for collected packages: pgi, PyGObject
- Building wheel for pgi (setup.py) ... done
- Created wheel for pgi: filename=pgi-0.0.11.2-py3-none-any.whl size=181799 sha256=868707ac2230b6a0622d15be471f9de98457338898d7018f80c8c16551db72d9
- Stored in directory: /tmp/pip-ephem-wheel-cache-ackqs_l1/wheels/c1/ff/0c/ea747da858deb25c1a7bcea1b856318aede4026f40ff365eca
- Building wheel for PyGObject (pyproject.toml) ... done
- Created wheel for PyGObject: filename=PyGObject-3.42.1-cp36-cp36m-linux_aarch64.whl size=832282 sha256=f8d69a31f605cfc7d984947d57fab1c02f6c360ca47984c55ff2ad528b63fa3c
- Stored in directory: /tmp/pip-ephem-wheel-cache-ackqs_l1/wheels/32/42/1b/257119124c7a87daf53fca3c50ff61dc0cb3fc44b6a6fd6ba1
- Successfully built pgi PyGObject
- Installing collected packages: PyGObject, pgi, pyds
- Successfully installed PyGObject-3.42.1 pgi-0.0.11.2 pyds-1.1.1
成功!
感谢:
【Python】pipinstallpycairo-U失败的问题 - 百度文库
deepstream_python_apps/bindings at v1.1.1 · NVIDIA-AI-IOT/deepstream_python_apps · GitHub