ImportError: libcudart.so.11.0: cannot open shared object file: No such file or directory
笔者在docker环境中安装gpu版本的paddle,命令如下:
conda install paddlepaddle-gpu==2.4.1 cudatoolkit=11.2 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/Paddle/ -c conda-forge
使用如下命令验证GPU可用性
import paddle
paddle.fluid.install_check.run_check()
出现报错:
解决办法:文章来源:https://www.toymoban.com/news/detail-563943.html
cd $CONDA_PREFIX
mkdir -p ./etc/conda/activate.d
touch ./etc/conda/activate.d/env_vars.sh
# 写入
export LD_LIBRARY_PATH="$CONDA_PREFIX/lib"
文章参考:文章来源地址https://www.toymoban.com/news/detail-563943.html
- https://cloud.tencent.com/developer/ask/sof/930207
- https://blog.csdn.net/jillar/article/details/116494270
到了这里,关于ImportError: libcudart.so.11.0: cannot open shared object file: No such file or directory的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!