日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程语言 > python >内容正文

python

tensorflow.python.framework.errors_impl.NotFoundError: libnvinfer.so.5: cannot open shared object fi

發(fā)布時(shí)間:2023/12/31 python 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 tensorflow.python.framework.errors_impl.NotFoundError: libnvinfer.so.5: cannot open shared object fi 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

Eclipse在使用Tensorflow-CUDA10 的時(shí)候,出現(xiàn)錯(cuò)誤;

參考鏈接:https://blog.csdn.net/qq_20373723/article/details/80065936

官方文檔:https://docs.nvidia.com/deeplearning/sdk/tensorrt-install-guide/index.html#downloading

  • Download the TensorRT local repo file that matches the Ubuntu version you are using.
  • Install TensorRT from the Debian local repo package. $ sudo dpkg -i nv-tensorrt-repo-ubuntu1604-cuda10.0-trt5.0.2.6-ga-20181009_1-1_amd64.deb $ sudo apt-key add /var/nv-tensorrt-repo-cuda10.0-trt5.0.2.6-ga-20181009/7fa2af80.pub$ sudo apt-get update $ sudo apt-get install tensorrt

    安裝時(shí)候出現(xiàn)庫(kù)的錯(cuò)誤,使用sudo apt-get -f install? ,然后 sudo apt-get install tensorrt ,自動(dòng)下載幾Mb文件,安裝成功!

  • If using Python 2.7: $ sudo apt-get install python-libnvinfer-dev The following additional packages will be installed: python-libnvinfer

    ?

    If using Python 3.x: $ sudo apt-get install python3-libnvinfer-dev The following additional packages will be installed: python3-libnvinfer

    ?

    If you plan to use TensorRT with TensorFlow: $ sudo apt-get install uff-converter-tf The graphsurgeon-tf package will also be installed with the above command.
  • Verify the installation. $ dpkg -l | grep TensorRT

    ?

    You should see something similar to the following:

    wishchin@wishchin-HP-ENVY-Laptop-13-ad1xx:~/下載$ dpkg -l | grep TensorRT
    ii? graphsurgeon-tf???????????????????????????????????????????? 5.0.2-1+cuda10.0????????????????????????????? amd64??????? GraphSurgeon for TensorRT package
    ii? libnvinfer-dev????????????????????????????????????????????? 5.0.2-1+cuda10.0????????????????????????????? amd64??????? TensorRT development libraries and headers
    ii? libnvinfer-samples????????????????????????????????????????? 5.0.2-1+cuda10.0????????????????????????????? all????????? TensorRT samples and documentation
    ii? libnvinfer5???????????????????????????????????????????????? 5.0.2-1+cuda10.0????????????????????????????? amd64??????? TensorRT runtime libraries
    ii? python3-libnvinfer????????????????????????????????????????? 5.0.2-1+cuda10.0????????????????????????????? amd64??????? Python 3 bindings for TensorRT
    ii? python3-libnvinfer-dev????????????????????????????????????? 5.0.2-1+cuda10.0????????????????????????????? amd64??????? Python 3 development package for TensorRT
    ii? tensorrt??????????????????????????????????????????????????? 5.0.2.6-1+cuda10.0??????????????????????????? amd64??????? Meta package of TensorRT
    ii? uff-converter-tf??????????????????????????????????????????? 5.0.2-1+cuda10.0????????????????????????????? amd64??????? UFF converter for TensorRT package

    ?

  • App Server Installation: When setting up servers which will host TensorRT powered applications, you can simply install any of the following:

    • the libnvinfer5 package (C++), or
    • the python-libnvinfer package (Python 2.7), or
    • the python3-libnvinfer package (Python 3.x).

    Issue the following commands if you want to run an application that was built with TensorRT using the Debian package, for example:

    $ sudo dpkg -i nv-tensorrt-repo-ubuntu1x04-cudax.x-trt5.1.x.x-ga-yyyymmdd_1-1_amd64.deb $ sudo apt-key add /var/nv-tensorrt-repo-cudax.x-trt5.1.x.x-ga-yyyymmdd/7fa2af80.pub$ sudo apt-get update $ sudo apt-get install libnvinfer5

    ?

    ?

    ?

    創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)

    總結(jié)

    以上是生活随笔為你收集整理的tensorflow.python.framework.errors_impl.NotFoundError: libnvinfer.so.5: cannot open shared object fi的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。