当使用linux系统运行pytorch的深度学习模型的时候,会出现一些动态库没有安装的问题,导致报错。如下所示:
ImportError: libX11. so. 6: cannot open shared object file: No such file or directory
ImportError: libXau. so. 6: cannot open shared object file: No such file or directory
完整报错如下图所示
这两个报错表明一些动态库没有安装。
我的解决方案,这时候可以在终端中输入以下代码:
conda install -c conda-forge xorg-libx11
conda install -c conda-forge xorg-libxau
将库安装上,然后即可运行成功
因篇幅问题不能全部显示,请点此查看更多更全内容