Spyder does not update to V4 - anaconda

Updating spyder does nothing. My system is still stuck on V3. Can someone help me get this onto V4 please?
I start the Anaconda navigator.
I start Spyder V3.3.6
A prompt informs me that Spyder 4.0.1 is available.
I follow the instructions at : https://docs.spyder-ide.org/installation.html
Open an Anaconda command window and type: conda update spyder
Get the following:
(base) C:\Users\user>conda update spyder
Collecting package metadata (current_repodata.json): done
Solving environment: \
Updating spyder is constricted by
anaconda -> requires spyder==3.3.6=py37_0
If you are sure you want an update of your package either try `conda update --all` or install a specific version of the package you want using `conda install <pkg>=<version>`
done
# All requested packages already installed.

run conda update anaconda to update your anaconda version then update your spyder version using conda update spyder

I am listing all my steps, as I'm not sure exactly what steps permitted what other steps.
I also had Anaconda installed for managing and using Spyder 3.3.6. When I ran Spyder, I get the message Spyder 4.1.5 is available!. I ran Anaconda Navigator as Administrator, and in the Home tab, the Spyder Settings menu showed Update Application grayed out. This persisted even if I entered the Environments Tab and clicked on Update Index....
I opened an Anaconda Prompt as Administrator and ran:
conda update --all
conda update conda
conda update anaconda
conda update spyder
I also got the following message:
Updating spyder is constricted by
anaconda -> requires spyder==3.3.6=py37_0
If you are sure you want an update of your package either try `conda update --all` or install a specific version of the package you want using `conda install <pkg>=<version>`
done
# All requested packages already installed.
I closed the Anaconda Prompt and opened a new one, in case that was needed for the updated Anaconda to work. I re-issued condate update spyder but got the same message as above. I confirmed that Spyder is still at version 3.3.6.
I re-ran Anaconda Navigator. This time, Spyder's Update Application was not grayed out, but clicking on it only caused a brief spinning circle. The Spyder version was not updated. I re-entered the Environments tab and re-clicked on Update Index... and waited for it to finish. In Anaconda Navigator's Home tab, in Spyder's Settings menu, I was then able to Install specific version > 4.1.5.

Related

Anaconda Navigator (2.0.4 --> 2.1.1) won't update on Windows 10

I am just wondering if anyone has had the issue stated in the title.
Context
I am currently on anaconda navigator version 2.0.4 (this was a July 2021 release if I am correct), and I am looking to upgrade the navigator to version 2.1.1 (the latest release as of this posting). My OS is Windows 10.
Problem
When I update from the navigator itself (on the "upgrade now" button), the update says it's running but never finishes (I sat about an hour before dismissing it).
I tried manually installing the update, but it just tells me that "all requested packages are already installed" (see below)
I even tried going into anaconda powershell prompt, deactivating conda and updating it, but still the same issue ("all requested packages are already installed"), see below:
I am wondering if anyone has the same issue as I do? Are there any more potential fixes I could try? Preferably one in which I don't have to uninstall and reinstall anaconda. The navigator is important to me because that's where I install all my packages into the various virtual environments. I can work around it if it's unfixable but I'd rather have it working straight. Appreciate the help.
I had a simmilar problem. I was trying to upgrade from version 1.9.12. I tried severeal times with this sequence of commands:
conda update conda
conda update --all
conda deactivate
conda update anaconda-navigator
But it was unsuccesful. anaconda-navigator did not upgrade and there was still an upgrade button in the navigator app, which should upgrade to the latest version, which was 2.1.2 at the time. Clicking
this button was also unsuccesful.
Then i found this https://docs.anaconda.com/anaconda/install/update-version/, how to install a specific version of a package.
I tried this command:
conda install anaconda-navigator=2.1.2
And it worked. The output of the command was suggesting something was wrong with repositories:
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: done
But it finnished successful. At the end I also did this.
conda update conda
conda update --all
And now a have everything updated to tha latest version, including anaconda-navigator. I hope this somehow helps.
Right click the shortcut of the navigator (or the icon in Start) and choose "Run as administartor".
Once the navigator opens run the upgrade

Trouble updating to Anaconda Navigator 1.10.0 (Windows) - stuck on Solving environment

Anaconda Navigator does not upgrade after selecting the prompt to do so
Apparently this is a known issue (Trouble updating to Anaconda Navigator 1.10.0 (MacOS)) but the solution there
conda deactivate
conda update anaconda-navigator
doesn't work for me.
Other posts suggested first running
conda update --all
which I did, apparently successfully, but when I go back to try the update above I still get stuck on Solving environment:
It's been stuck there for more than 12 hours, so I think it's safe to conclude it's not going to get unstuck.
Any suggestions?
Could the "InvalidArchiveError" related to the pytorch archive (see image) be an issue (I wouldn't have thought so)?

Installing networkx v2.4 for python3.7 via anaconda on Windows 10

I installed Anaconda3 (version 2019.10-Windowsx86_64) on my PC last week. It comes with networkx v2.3, but I would like to upgrade to v2.4, which should be available on Anaconda according to conda search and Anaconda's website.
I first tried the Anaconda navigator, but can't get it to work. It indicates that networkx can be updated. However, when I click Apply the navigator spends a bit of time "solving package specifications" and then gives me the empty pop-up shown below.
I also tried using conda prompt. Using conda install networkx, conda update networkx, conda install -c anaconda networkx does not result in v2.4 being installed. I also tried conda install networkx=2.4, which takes forever and then reports a very long list of package conflicts. I find this confusing because I just installed Anaconda and haven't tampered with any configs yet.
Grateful for any help on understanding what is going on and how I can attempt to fix it!
I also tried conda install networkx=2.4, which takes forever and then reports a very long list of package conflicts.
This is the key here. anaconda comes with many packages pre-installed and some of these might depend on networkx==2.3 since they might not be compatible with the newest version.
What you can do is create a new environment that has the required version of networkx:
conda create -n myenv python=<your desired python version> networkx==2.4
which will create a new environment where you can only install the packages that you need and make sure that networkx==0.24 is satisfied.
You can try this in jupyter notebook in case you are working on jupyter notebook.
!pip install networkx==2.4
I had 2.5 v installed. But something wasn't working and had to degrade it to 2.4 and above method worked.
Try this:
pip install --upgrade networkx

Why can't I run after installing anaconda?

I installed the latest version of Anaconda on the official website and installed it according to the online tutorial. But when I clicked and ran Anaconda Navigator, the program disappeared after the black box popped up, and then there was no response.
I tried to "conda info --envs", then it give "base * C:\ProgramData\Anaconda3"
I tried to "conda install -c anaconda anaconda-navigator", then it give "CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://conda.anaconda.org/anaconda/win-64/current_repodata.json
Elapsed"
my user env variable is "C:\ProgramData\Anaconda3\;C:\Program Files\Python37\"
I expect Anaconda can be run and the reason why it doesn't work, though it is download by official website.
download complete anaconda package
https://www.anaconda.com/distribution/#download-section
and the navigator will be installed automatically

Anaconda Navigator create new enviorment and it doesn't show up

I just downloaded Anaconda and I'm using Navigator for the first time on Windows. I've been using Conda through the command line for awhile now, so I'm familiar with the concept of environments and how to use them. Right now, the only enviorment showing up in navigator is root. I want to install some additional packages, so I went ahead and cloned the root environment. This doesn't cause any errors, and seems to have worked, except I don't see my new environment.
I know the enviorments are successfully being created, as I can see them when I go through the Anaconda Prompt.
Any thoughts why this is not working?
The answer from this question : Anaconda Navigator does not show new environments
It goes like this:
1) Check that the new environment is there from conda prompt:
conda info --envs
2) update conda
conda update anaconda-navigator
3) restart your computer (I don't know if it will work by only restarting the conda navigator). Your new environment should be list in your anaconda navigator.

Resources