Skip to main content
 首页 » 编程设计

python之Spyder 无法在 Ubuntu 上的 Anaconda 中启动

2025年05月04日9lonelyxmas

我在 Ubuntu 16.04 上安装了 Anaconda,当我想启动 spyder 时,我收到以下错误消息:

max@r-stats01:~$ conda install spyder 
Solving environment: done 
 
# All requested packages already installed. 
 
max@r-stats01:~$ spyder 
QXcbConnection: Failed to initialize XRandr 
Qt: XKEYBOARD extension not present on the X server. 
Xlib:  extension "XInputExtension" missing on display ":11.0". 
[20523:20557:0619/163023.668325:ERROR:gl_surface_qt.cpp(229)]  
GLContextHelper::getXConfig() failed. 
[20523:20557:0619/163023.668369:ERROR:gl_surface_qt.cpp(371)]  
GLContextHelper::getEGLDisplay() failed. 
[20523:20557:0619/163024.293024:ERROR:gl_surface_qt.cpp(667)]  
Requested OpenGL implementation is not supported. Implementation: 0 
QQuickWidget: Failed to make context current 
QQuickWidget::resizeEvent() no OpenGL context 

似乎存在 OpenGL/图形问题,但我不知道如何解决它。

请您参考如下方法:

(这里是 Spyder 维护者)这个错误将在我们将于 2019 年 6 月发布的下一个版本 (3.3.0) 中得到正确解决。

在此期间,您可以打开终端并在那里运行

conda 安装 pyopengl

让 Spyder 工作。