当前位置:   article > 正文

Nvidia Jetson NX 使用tensorrt, ModuleNotFoundError: No module named ‘tensorrt’_modulenotfounderror: no module named 'tensorrt

modulenotfounderror: no module named 'tensorrt

1. 确保tensorrt已安装且可用。

dpkg -l | grep nvinfer

输出为:

  1. ii libnvinfer-bin 7.1.3-1+cuda10.2 arm64 TensorRT binaries
  2. ii libnvinfer-dev 7.1.3-1+cuda10.2 arm64 TensorRT development libraries and headers
  3. ii libnvinfer-doc 7.1.3-1+cuda10.2 all TensorRT documentation
  4. ii libnvinfer-plugin-dev 7.1.3-1+cuda10.2 arm64 TensorRT plugin libraries
  5. ii libnvinfer-plugin7 7.1.3-1+cuda10.2 arm64 TensorRT plugin libraries
  6. ii libnvinfer-samples 7.1.3-1+cuda10.2 all TensorRT samples
  7. ii libnvinfer7 7.1.3-1+cuda10.2 arm64 TensorRT runtime libraries
  8. ii python-libnvinfer 7.1.3-1+cuda10.2 arm64 Python bindings for TensorRT
  9. ii python-libnvinfer-dev 7.1.3-1+cuda10.2 arm64 Python development package for TensorRT
  10. ii python3-libnvinfer 7.1.3-1+cuda10.2 arm64 Python 3 bindings for TensorRT
  11. ii python3-libnvinfer-dev 7.1.3-1+cuda10.2 arm64 Python 3 development package for TensorRT

尤其是有python3-libnvinfer ,python3-libnvinfer-dev。

若无输出,则需安装tensorrt.

若有输出,需要看下当前python版本是否安装tensorrt

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/129825
推荐阅读
相关标签
  

闽ICP备14008679号