Spyder anaconda crashes on Linux with segmentation

2020-03-26 04:14发布

I just installed Anaconda on Linux. When trying to open spyder (either from navigator or terminal), it does not work. I get the following error when I try to open it in terminal:

Segmentation fault (core dumped)

I updated Conda completely but can't solve the problem. I am using Conda version 4.5.5 and Ubuntu 18.04. Any idea?

4条回答
2楼-- · 2020-03-26 04:54

The solutions around here did not work for me. I have uninstalled Anaconda https://docs.anaconda.com/anaconda/install/uninstall/ and reinstalled it https://docs.anaconda.com/anaconda/install/linux/

Only then did the segmentation fault disappear.

Note that this has worked with Ubuntu 14.04 LTS (a old release at the time of this writing) and Anaconda3 5.3.0 with Spyder 3.3.1 (the very latest); versions checked with conda list <package>. The Spyder version supported by Ubuntu 14 is still 2.5.5, so this arrangement lets me have on board a new Spyder without upgrading the distro. Not to mention that reportedly the developers prefer to maintain Spyder in the Anaconda environment rather than elsewhere.

查看更多
够拽才男人
3楼-- · 2020-03-26 04:55

Based on my experiences, if you have ubuntu 18.04, anaconda 4.5 or higher, and spyder 3.3 or higher, installing pyopengl does not work, since spyder 3.3 should handle it. As recommended above, before start fixing it try to update spyder first:

conda update spyder

then downgrade Qt:

conda install pyqt=5.6

It should probably fix your problem. Other solutions could be found here:

Spyder Troubleshooting-Guide-and-FAQ

as well as :

Basic Troubleshooting and Emergency CPR

查看更多
Viruses.
4楼-- · 2020-03-26 05:04

I saw issue on brand new Fedora with new anaconda installation. Just updating the spyder to latest version (in my case 3.3.1) fixed it, without anything else.

(BTW: You can do this even from anaconda navigator itself, just look after the wheel within each application panel in the right corner).

Would recommend to fix anything stepwise, start with upgrading to the latest spyder and if this doesn't work, try the other stuff.

查看更多
再贱就再见
5楼-- · 2020-03-26 05:18

(Spyder maintainer here) This problem is caused by faulty graphical card drivers and there are two ways to fix it:

  1. Update to Spyder 3.3 or higher.
  2. Install pyopengl with conda.
查看更多
登录 后发表回答