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?
(Spyder maintainer here) This problem is caused by faulty graphical card drivers and there are two ways to fix it:
Update to Spyder 3.3 or higher.
Install pyopengl with conda.
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
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.
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.
Related
I've run into numerous problems when attempting to update Spyder from 4.2.5 (which is what installs with the most recent Anaconda install) to 5.1.5 in Anaconda.
The advice provided on Spyder startup during version checking:
conda update conda
conda update anaconda
conda install spyder=5.1.5
does NOT work.
After some searching around, I did find a stack overflow question with an answer from a Spyder Maintainer with the following instructions:
conda remove spyder
conda remove python-language-server
conda update anaconda
conda install spyder=5.1.5
This seems to actually work, but then seemed to remove some common modules/packages as well, like matplotlib. Those are easy enough to reinstall (conda install matplotlib), but after that running matplotlib would cause Spyder to restart the Kernel every time, PLUS no plots were produced.
A different question provided the advice to downgrade the version of freetype from 2.11.0 to 2.10.4, which seemed to resolve that issue (downgrading Matplotlib seemed to be unnecessary). I'm afraid of what other issues I may encounter? I'm attempting to teach Python to 70 or so undergraduate students, and it's very difficult to assist when upgrades break things this bad.
Is there an easier/cleaner way to upgrade Spyder to 5.1.5 on Anaconda that I haven't come across yet?
(Spyder maintainer here) You said
Is there an easier/cleaner way to upgrade Spyder to 5.1.5 on Anaconda that I haven't come across yet?
Unfortunately, there isn't. This update was particularly hard because we had to drop some dependencies which became unmaintained and use others instead. However, the problem with Matplotlib crashing should be solved now (i.e. there's no need to downgrade freetype to fix it).
I'm attempting to teach Python to 70 or so undergraduate students, and it's very difficult to assist when upgrades break things this bad.
In that case, I strongly recommend you to use our Windows and macOS installers, which you can find here and follow our instructions on how to use other Python packages that don't come with them. I think that would be far more simpler for your students to follow than using Spyder directly through Anaconda.
(Sorry to be answering my own question, figured it's better for visibility)
So funny thing, as of 11/17/2021, I note that Anaconda's latest release now includes Spyder 5.1.5, so upgrade issues are no longer an problem if installing Anaconda fresh.
spyder 4.2.5 -> 5.1.5
spyder-kernels 1.10.2 -> 2.1.3
(https://docs.anaconda.com/anaconda/reference/release-notes/)
Yay for fortuitous upgrade releases!
I had problems installing Spyder version 5.1.5. I followed all the steps outlined by #Carlos Cordoba which I have listed below:
conda remove spyder
conda remove python-language-server
conda update anaconda
conda install spyder=5.1.5
As soon as I did the above, my Anaconda installation was broken really badly. It is taking almost 8 hours to repair. If I had known, I should have remained with my jupyter notebooks but I decided to be adventurous with Spyder. Anyone knows any other fix for this?
You can try updating to Spyder 5.0.5 first then updating to 5.1.5 next. Maybe it might work. I managed to successfully update to 5.1.5 from 5.0.5 days ago without encountering any issues. Unfortunately, now that I have uninstalled and reinstalled Python and Anaconda in my newer laptop, even I too encountered this difficulty in updating to 5.1.5 straight from 4.2.5. Updating to Spyder 5.0.5 from 4.2.5 worked, but then updating to 5.1.5 didn't.
I installed the latest version of Anaconda last October, but this year when I wanted to use it I found that the anaconda navigator runs very slow and lags a lot. So I uninstalled it and wanted to reinstall it so as to see if this problem can be solved. However, when I began to reinstall it, a series of errors occurred. I have tried several versions of installation packages and all of them failed to install anaconda, reporting the “FileNotFoundError:[WinError 2] (the Chinese sentence here means “The system cannot find the file specified”)” Then I tried everything, including switching the installation position
to another disk, removing the.anaconda and.conda folders under C: \Users\Administer, and so on, but nothing worked. Finally, I found a version of Anaconda released at the end of 2017, version 3.5.0.0, and finally installed it properly. However, the python version is 3.6 in anaconda 3.5.0.0, and some packages I want to use do not work or cannot be installed. Besides, I ran into new problems when using the command “conda update anaconda” in Prompt. These included memory leaks and the mysterious disappearances of the two apps Anaconda Navigator and Anaconda Prompt. So I had to uninstall anaconda once again. Is there any way to successfully install the latest version of Anaconda and Python?
My installation process is as follows. My system is windows7(64bit).
installation process 1
installation process 2
installation process 3
there are only three folders after installation
You should completely uninstall Anaconda first before you give it a new try, see the official docs here: https://docs.anaconda.com/anaconda/install/uninstall/
Then there is also another stackoverflow post that you might want to look at in case of further trouble: How to remove anaconda from windows completely?
I've once installed Python 3.6.2 - 32bit, however I wanted to install the 64 bit Version. When I want to uninstall it with the Windows Installer it tells me No Python 3.6 installation was detected. When I know choose Modify It only gives me a grayed out path.
Any Solutions how to get rid of it and reinstall?
I went a very old school way, I've used the old RegScanner Tool to search for any occurrences of Python36. Deleted all Keys/Values, restarted the machine and was able to uninstall it when launching the Python Installer.
I ran into a similar problem as this and ended up needing to:
Check "Add or remove programs" for previous versions of Python.
Download the installer for that version.
Repair the older version of Python Windows thought was installed.
Uninstall the older version.
Try to install the newer version again.
Have you tried to uninstalling it , from control panel first remove
the installed package
Make sure you installing as administrator
Still not helped then try uninstaller tool(here is one : http://www.softpedia.com/get/Tweak/Uninstallers/Advanced-Uninstaller.shtml)
I have Ubuntu 14.04 LTS. I guess different versions of python are pre-installed in Ubuntu 14.04. Right now when I type 'python' in terminal it opens python 2.7.11, but I guess the default version of Ubuntu 14.04 is 2.7.6. When I type /usr/bin/python it opens the default version. I know this can be done with making aliases. The real problem is, I have installed pygame, cv2 (that is for image processing) using apt-get. These are installed for default version of python i.e python 2.7.6. Also I have installed anaconda with python 2.7.11 using pip, but again 'pip' and anaconda are installed for 2.7.11. I know python 3 is also pre-installed there but I don't use it. Also I have no python version installed in user/local/bin.Now I want to know why this problem is occurring? How can I fix this now? Also how to import all the libraries for one python version(either default or another) and how to use it? How to configure my settings so that I would not have any problem in future?
If you have easy_install installed you can run
sudo easy_install pip
to install pip. As far as installing Anaconda goes, try using this stack overflow question's answer. If you can't get that to work comment explaining the issue.
First of all I want to thanks Bennet for responding to my question so that I was able to figure out what the problem was. Actually the problem was with aliasing. When I installed cv2 or pygame using apt-get, they were installed for default version but when I installed any package by downloading the installer first (like I installed anaconda), it was installed for python 2.7.11 because 'python' was aliased for this version(that is 2.7.11). So, basically make sure that the default version for which you want to install everything is the one which is aliased as 'python', and everything goes fine. I aliased 'python' for the default version and then installed anaconda via installer and now it has been installed default version.