我在WSL 2、Ubuntu\xc2\xa022.04 (Jammy Jellyfish) 下安装了 TensorFlow,按照使用 pip 安装 TensorFlow中的说明进行操作。
\n*我还安装了适用于 Windows 的 Nvidia 驱动程序,并且在我的另一个 WSL\xc2\xa02 中,我使用 GPU 支持的模拟程序。
\n一切看起来都很好。我在安装过程中没有收到任何错误消息,但是当我在Python\xc2\xa03中导入TensorFlow时,出现以下错误:
\n2023-02-12 14:49:58.544771: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library \'libnvinfer.so.7\'; dlerror: libnvrtc.so.11.0: cannot open shared object file: No such file or directory\n2023-02-12 14:49:58.544845: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library \'libnvinfer_plugin.so.7\'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory\n2023-02-12 14:49:58.544874: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. …
Run Code Online (Sandbox Code Playgroud)