Sör*_*ren 5 linux matplotlib conda windows-10
我使用 W10 商店中的“Ubuntu”应用程序来安装 anaconda 等。这在 W10 系统上提供了方便的 Linux 支持。我安装了 anaconda 并从 Linux 终端使用了 jupyter notebook。但是导入 pylab 会出现错误
from PyQt5 import QtCore, QtGui, QtWidgets
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
Run Code Online (Sandbox Code Playgroud)
解决这个问题的一种方法是安装 libGL.so.1 显然它可能在包 lib 中libgl1-mesa-glx。然而,
sudo apt install libgl1-mesa-glx --yes > output
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/m/mesa/libglapi-mesa_17.0.7-0ubuntu0.16.04.1_amd64.deb 404 Not Found [IP: 91.189.88.161 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/m/mesa/libgl1-mesa-dri_17.0.7-0ubuntu0.16.04.1_amd64.deb 404 Not Found [IP: 91.189.88.161 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/m/mesa/libgl1-mesa-glx_17.0.7-0ubuntu0.16.04.1_amd64.deb 404 Not Found [IP: 91.189.88.161 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Run Code Online (Sandbox Code Playgroud)
有没有办法安装 libGL.so.1 或在没有它的情况下使用 pylab?
| 归档时间: |
|
| 查看次数: |
1150 次 |
| 最近记录: |