简体   繁体   English

无法在新的 anaconda 安装中更新 spyder=5.1.5

[英]Cannot update spyder=5.1.5 on new anaconda install

I installed anaconda and spyder came with the installation.我安装了 anaconda,安装时附带了 spyder。 Spyder 4.2.5 came with the installation and I got a pop up notification that spyder=5.1.5 is available. Spyder 4.2.5 随安装一起提供,我收到一个弹出通知,提示 spyder=5.1.5 可用。 I tried我试过

conda update anaconda康达更新蟒蛇

conda install spyder=5.1.5康达安装 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.我试着让它运行超过 8 个小时,但我不得不取消它,因为我累了。

Tried试过

conda install anaconda spyder=5.1.5 conda 安装 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.收集包元数据 (repodata.json):完成 求解环境:初始冻结求解失败。 Retrying with flexible solve.使用灵活的解决方法重试。

PackagesNotFoundError: The following packages are not available from current channels: PackagesNotFoundError:当前频道不提供以下软件包:

  • ananconda蟒蛇

Current channels:当前频道:

To search for alternate channels that may provide the conda package you're looking for, navigate to要搜索可能提供您正在寻找的 conda 包的备用频道,请导航到

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. 这里是 Spyder 维护者)我们更新 Spyder 的常规说明在这种情况下不起作用,因为 Spyder 5.0.5 和 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):要解决此问题,您需要关闭 Spyder 并在 Anaconda Prompt(或 Linux 或 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.第二个命令( conda remove python-language-server )可能会给你一个错误,但没关系。 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 版。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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