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

【WSL安装测试paddle报错】 The third-party dynamic library (libcuda.sois not configured correctly.

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

【WSL安装测试paddle报错】 The third-party dynamic library (libcuda.sois not configured correctly.

安装paddle后使用python测试paddle是否可用

import paddle
paddle.utils.run_check()

报出如下错误

Running verify PaddlePaddle program …
W0805 12:10:54.786352 5446 gpu_resources.cc:61] Please NOTE: device: 0, GPU Compute Capability: 7.5, Driver API Version: 11.7, Runtime API Version: 11.2
W0805 12:10:54.791039 5446 gpu_resources.cc:91] device: 0, cuDNN Version: 8.1.
W0805 12:10:55.927047 5446 dynamic_loader.cc:305] The third-party dynamic library (libcuda.so) that Paddle depends on is not configured correctly. (error code is libcuda.so: cannot open shared object file: No such file or directory)
Suggestions:

  1. Check if the third-party dynamic library (e.g. CUDA, CUDNN) is installed correctly and its version is matched with paddlepaddle you installed.
  2. Configure third-party dynamic library environment variables as follows:
  • Linux: set LD_LIBRARY_PATH by export LD_LIBRARY_PATH=...
  • Windows: set PATH by `set PATH=XXX;
    Segmentation fault

这是paddle没有找到libcuda.so,在wsl中,该文件在/usr/lib/wsl/lib路径下。
在.bashrc下加入该路径即可。

export LD_LIBRARY_PATH=/usr/lib/wsl/lib:$LD_LIBRARY_PATH


成功。

转载请注明:文章转载自 www.wk8.com.cn
本文地址:https://www.wk8.com.cn/it/1038150.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 wk8.com.cn

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