码迷,mamicode.com
首页 > 编程语言 > 详细

Python spyder could not initialize GLX

时间:2021-01-08 10:52:06      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:item   ref   ges   sim   mes   style   rgba   extension   blog   

Problem:

Whenever I run spyder, It results in the error below

QXcbConnection: Failed to initialize XRandr 
Qt: XKEYBOARD extension not present on the X server. 
Could not initialize GLX
Aborted (core dumped)

Solution:

1、Simply try:

export QT_XCB_GL_INTEGRATION=none

Then, start the spyder

 

2、Reinstall some packages:

sudo apt-get install libgl1-mesa-dri
sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx libgl1-mesa-dri
sudo dpkg-reconfigure xserver-xorg

 

Related:

解决Spyder 黑屏 QOpenGLShader 问题

Ubuntu VNC 打开spyder无法输入(检测不到键盘配置)解决方法

 

https://stackoverflow.com/questions/42291236/python-spyder-could-not-initialize-glx

 

Python spyder could not initialize GLX

标签:item   ref   ges   sim   mes   style   rgba   extension   blog   

原文地址:https://www.cnblogs.com/jins-note/p/14241135.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!