How to upgrade Spyder in Anaconda? [duplicate] - installation

This question already has answers here:
Trouble updating to Spyder 4.0.0
(8 answers)
Closed 2 years ago.
I just installed new Anaconda with Python 3.7. The Spyder version is still 3.36 and it says there is an new version 4.0.1 available each time I started Spyder.
I tried to upgrade Spyder using two approach:
conda update spyder (it didn't work even there was no error)
conda install spyder=4.0.1
Using second method, found so many conflict like below.

Open "Anaconda Navigator" and in Spyder Frame you'll see a gear icon, click on that and then click on "Update Application".

I had the same problem, using the Spyder icon little wheel of Anaconda home. It was running forever and, if lucky stopped without updating.
To solve the issue, I opened the "Anaconda prompt" (as admin, just in case), launched the command:
conda update --all
The back to Anaconda home, little wheel of Spyder icon and chose the highest version. The install tool a few dozen of secs.

Related

Spyder Debugger Crashes

Mac OS 12.2.1
Anaconda Navigator 2.1.2
Spyder 5.1.5
I’ve been to the Spyder Web site, performed what was described as “Basic First-Aid” as well as “Emergency CPR” without satisfactory resolution. The first symptom was that the debugger just hung. After performing the suggested fixes (updating Anaconda, Spyder, and Spyder dependencies, system re-boot, etc.), the debugger now reports: “OperationalError: attempt to write a readonly database.”
I’m at my wits’ end. I’m wondering if I need to completely re-install all of Anaconda. Is there a “best way” to do this? Is there a web site that I can consult that will demonstrate how to get a fresh installation?
ADDENDUM
So, I cleaned Anaconda from my machine (what a horrific experience!) and re-installed it, using conda for both tasks. I started Anaconda and then launched Spyder. Then I loaded one of my modules, set a brake-point in the editor, and boom! The Spyder debugger worked. However, the new installation of Anaconda was lacking a particular library: pyreadstat. I used conda to get this library. I then launched Anaconda again, saw that pyreadstat was now in the base(root) environment. I ran one of my packages (8 modules mainly consisting of numpy and itertools manipulations of N-D arrays) and everything worked, including calls to pyreadstat to read SAS datasets. Okay, everything seemed copacetic. So, I tried to debug one of my modules and the debugger failed again, returning the message: “OperationalError: attempt to write a readonly database.” WTF! Is conda trashing Spyder’s debugger in some mysterious way? I don’t get it. Why would pyreadstat affect Spyder. It must be conda.
To answer my own question, in the Mac Terminal app, I typed:
--> conda install -c conda-forge spyder=5.2.2
Boom! All is well.
I had the same problem on Windows10 with spyder version 5.1.5.
For me, updating Spyder to the newest version as suggested here worked as well. This can be done in two ways:
Console
Open the console or, if you're working on Windows, the Anaconda Prompt and type the following commands in order to first uninstall spyder, and then re-install the newest version (just updating didn't work for me).
conda remove -n myenv spyder
conda install -n myenv -c conda-forge spyder
The first command, remove, uninstalls spyder in the virtualenv called 'myenv'. If you don't use virtualenvs, just leave the -n myenv aside.
The second command, install installs spyder from the third-party channel conda-forge instead of the official channel defaults. This option is necessary in order to install a spyder version newer than 5.1.5
Anaconda Navigator
Uninstall Spyder: In the "Home" tab, select the correct virtual environment in the "Applications on" dropdown menu. Then click on the gear symbol in the upper right corner of the spyder tile and select "remove application".
Add conda-forge to your environment's channels: This is nicely described at the bottom of this page.
Install spyder again, in the way you did it the first time.
Click again on the gear on the spyder tile, choose "install specific version" in order to update to the newest version. Now, versions newer than 5.1.5 should be available.

After Update of running update -- all anaconda + Spyder disappeared

I run an update today as the systems have not been updated for a while and now after running "conda update -- all" in the anaconda prompt - everything seems to be away. I can find neither Spyder or Anaconda prompt in the Windows search bar. :(
Do i need to deinstall and install everything again? Please help!!!

Anaconda Spyder 4.1.5 updates

I have the most recent Anaconda navigator on both my Windows and Linux machines, but when i open Spyder on either machine it tells me that Spyder 4.1.5 is available and i should install it. I can't do this through navigator.
The Anaconda page says to run 'conda install -c anaconda spyder' to install Spyder 4.1.5. link: Anaconda.org page On my linux machine this just tries to install Spyder 4.1.4 (Ubuntu screeenshot), I get the same result with windows (windows screenshot)
It seems this is a regular issue, what is the point of relesaing a piece of software and then not allowing it to be downlaoded and installed in the very manner that both Anaconda and Spyder tell you to do it?
Since you seem to have a previous version installed, did you try a simple update from the conda prompt?
conda update spyder --dry-run
Just remove the --dry-run part if everything looks fine.

Anaconda 3 Spyder Version 4.0.1 corrupted, cant install v4.1.3 completely

On my MacBook Pro, I used Anaconda Spyder 4.0.1 successfully for 6 weeks. But this week it started producing extraneous plots and printouts, even after removing all variables, Restarting the kernel and restarting Spyder. It was so bad I couldn’t find my real outputs.
This happened despite the fact that my python 3 script finished execution. With no error exceptions
I first tried upgrading Spyder, since it said version 4.1.3 was available and suggested i should try it I did this successfully in terminal with CondA install Spyder 4.1.3. But this did not update the version available from Anaconda navigator.
So I clean unininstalled Anaconda 3 and reinstalled from new download, but got Spyder 4.0.1 again, with the very same results
This loop does not converge, so I am dead in the water.
I could not update Spyder from version 4.0.1 either (although I tried via the Anaconda GUI, not via terminal).
When I tried 'conda update --all' via terminal it worked. I did get a message that anaconda itself needed to be downgraded.

Issues when updating to Spyder 4.0.1 with Anaconda - Reverts to Version 3.3.6 when updating in Anaconda Navigator

I am trying to update to the latest version of Spyder, Version 4.0.1, on my windows machine.
I have uninstalled anaconda and done a fresh install of Anaconda, and have updated anaconda and Spyder from the anaconda prompt, both of which have been successful without any errors.
The problem is, when starting Anaconda it shows that Spyder can be updated to the latest version, 4.0.1, and when updating it by clicking on the gear icon, it will run for a minute or so before stopping with no error messages and showing the version as Spyder 3.3.6 with no option to update it.
My current environment is the base environment. Any help would be greatly appreciated

Resources