在Windows 11中从ubuntu bash调用spyder导致错误
我使用的是Win 11,
我安装了wsl2和ubuntu bash,
我还安装了spyder,但每次我尝试运行它时,我都会收到错误,
asmgx@DELLG3:~$ spyder
/home/asmgx/.local/lib/python3.8/site-packages/pkg_resources/__init__.py:122: PkgResourcesDeprecationWarning: 0.23ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
/home/asmgx/.local/lib/python3.8/site-packages/pkg_resources/__init__.py:122: PkgResourcesDeprecationWarning: 0.1.36ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
qt.qpa.xcb: could not connect to display :0.0
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, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Aborted
我用谷歌搜索并尝试了不同的解决方案,
例如
pip install spyder
pip install --upgrade spyder
pip install PyQt5
export QT_DEBUG_PLUGINS=1
但没有工作,
有人知道我怎样才能让spyder运行吗?
I am using Win 11
I installed wsl2 and ubuntu bash
i also installed spyder but everytime i try to run it i get error
asmgx@DELLG3:~$ spyder
/home/asmgx/.local/lib/python3.8/site-packages/pkg_resources/__init__.py:122: PkgResourcesDeprecationWarning: 0.23ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
/home/asmgx/.local/lib/python3.8/site-packages/pkg_resources/__init__.py:122: PkgResourcesDeprecationWarning: 0.1.36ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
qt.qpa.xcb: could not connect to display :0.0
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, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Aborted
I googled and tried different solutioins proposed
such as
pip install spyder
pip install --upgrade spyder
pip install PyQt5
export QT_DEBUG_PLUGINS=1
but non worked
any one know how can i get spyder running?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
pyder 文档常见问题 解释如何连接。
您可以使用此网址进行任何更新。
在我看来,它的工作很完美。
spyder document Frequently Asked Questionsits explain how to connect.
You can fallow this url for any update.
At my end its work perfactly.