简体   繁体   中英

Cannot update spyder=5.1.5 on new anaconda install

I installed anaconda and spyder came with the installation. Spyder 4.2.5 came with the installation and I got a pop up notification that spyder=5.1.5 is available. I tried

conda update anaconda

conda install spyder=5.1.5

and gets an error:

Solving environment: failed with initial frozen solve. Retrying with flexible solve.

I tried letting it run for more than 8 hours, but I had to cancel it because I got tired.

Tried

conda install anaconda spyder=5.1.5

and gets another error:

`Solving environment: failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  • ananconda

Current channels:

To search for alternate channels that may provide the conda package you're looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

Can someone please help on how to solve this?

( Spyder maintainer here ) Our regular instructions to update Spyder don't work in this case because there are some incompatible dependencies between Spyder 5.0.5 and 5.1.5.

To workaround this problem, you need to close Spyder and run the following commands in the Anaconda Prompt (or your system terminal on Linux or macOS):

conda remove spyder
conda remove python-language-server
conda update anaconda
conda install spyder=5.1.5

The second command ( conda remove python-language-server ) could give you an error, but that's fine. Simply ignore it and continue with the others.

我从这里使用了 $ conda install -c conda-forge/label/beta spyder https://anaconda.org/conda-forge/spyder并安装了 5.0.07a 版。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM