提问人:Oscar Espinosa 提问时间:11/17/2023 最后编辑:Oscar Espinosa 更新时间:11/19/2023 访问量:15
在 WSL 中启用 GUI 应用
Enabling GUI apps in WSL
问:
我试图在WSL中启用Spyder IDE。我的发行版是 Ubuntu。在发行版中,我安装了以下软件包:
libegl1-mesa
libxrandr2
libxrandr2
libxss1
libxcursor1
libxcomposite1
libasound2
libxi6
libxtst6
libxcursor-dev
alsa
在 Windows 中,我安装了 XLaunch。在尝试在 WSL 的发行版中运行一些 GUI 应用程序之前,我先运行 XLaunch。但是,我收到以下错误,第一个错误是当我尝试运行 Spyder 时,第二个错误是当我尝试运行 Anaconda Navigator 时:
(base) oscar@myComp:~$ spyder
Traceback (most recent call last):
File "/home/oscar/anaconda3/bin/spyder", line 11, in <module>
sys.exit(main())
^^^^^^
File "/home/oscar/anaconda3/lib/python3.11/site-packages/spyder/app/start.py", line 252, in main
from spyder.app import mainwindow
File "/home/oscar/anaconda3/lib/python3.11/site-packages/spyder/app/mainwindow.py", line 57, in <module>
from qtpy import QtWebEngineWidgets # analysis:ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/oscar/anaconda3/lib/python3.11/site-packages/qtpy/QtWebEngineWidgets.py", line 29, in <module>
from PyQt5.QtWebEngineWidgets import QWebEnginePage
ImportError: libXdamage.so.1: cannot open shared object file: No such file or directory
(base) oscar@myComp:~$ anaconda-navigator
2023-11-16 15:45:59,381 - WARNING linux_scaling.get_scaling_factor_using_dbus:32
An exception occurred during fetching list of system display settings.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, minimal, minimalegl, offscreen, vnc, webgl, xcb. Aborted (core dumped)
感谢您对此的关注。 奥斯卡
答: 暂无答案
评论