如何在windows10 linux控制台(称为Ubuntu)中安装libGL.so.1?
我使用W10商店中的“Ubuntu”应用程序安装anaconda等。这在W10系统上提供了方便的Linux支持。我安装了anaconda并使用Linux终端上的jupyter笔记本。然而,导入pylab会产生错误如何在windows10 linux控制台(称为Ubuntu)中安装libGL.so.1?,linux,matplotlib,windows-10,conda,Linux,Matplotlib,Windows 10,Conda,我使用W10商店中的“Ubuntu”应用程序安装anaconda等。这在W10系统上提供了方便的Linux支持。我安装了anaconda并使用Linux终端上的jupyter笔记本。然而,导入pylab会产生错误 from PyQt5 import QtCore, QtGui, QtWidgets ImportError: libGL.so.1: cannot open shared object file: No such file or directory 解决此问题的一种方法是安装lib
from PyQt5 import QtCore, QtGui, QtWidgets
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
解决此问题的一种方法是安装libGL.so.1,显然它可能位于liblibgl1 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?
有没有办法安装libGL.so.1或者不安装它就使用pylab?现在我可以从Numpy导入我需要的函数,但是如果能在W10 Linux控制台中完全兼容就太好了。
apt
显示错误404,因为文件不在服务器上。此URL中的文件以ubuntu0.16.04.2_amd64.deb
结尾。因此,您的套餐列表可能已过期,通常由apt get update