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

时间:2023-03-03
本文介绍了无法在新的 anaconda 安装上更新 spyder=5.1.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了 anaconda,spyder 随安装一起提供.Spyder 4.2.5 随安装一起提供,我收到一个弹出通知,提示 spyder=5.1.5 可用.我试过了

<块引用>

conda 更新 anaconda

<块引用>

conda install spyder=5.1.5

并得到一个错误:

求解环境:初始冻结求解失败.使用灵活的求解重试.

我尝试让它运行超过 8 小时,但因为我累了,我不得不取消它.

试过

<块引用>

conda install anaconda spyder=5.1.5

并得到另一个错误:

`求解环境:初始冻结求解失败.使用灵活的求解重试.收集包元数据(repodata.json):完成求解环境:初始冻结求解失败.使用灵活的求解重试.

PackagesNotFoundError:当前频道无法提供以下软件包:

  • 蟒蛇

当前频道:

  • https://repo.anaconda.com/pkgs/main/linux-64
  • https://repo.anaconda.com/pkgs/main/noarch
  • https://repo.anaconda.com/pkgs/r/linux-64
  • https://repo.anaconda.com/pkgs/r/noarch

搜索可能提供您正在使用的 conda 包的替代频道寻找,导航到

https://anaconda.org

并使用页面顶部的搜索栏.

有人可以帮忙解决这个问题吗?

解决方案

(这里是 Spyder 维护者) 在这种情况下,我们更新 Spyder 的常规指令不起作用,因为 Spyder 之间存在一些不兼容的依赖关系5.0.5 和 5.1.5.

要解决此问题,您需要关闭 Spyder 并在 Anaconda Prompt(或 Linux 或 macOS 上的系统终端)中运行以下命令:

conda 删除 spyderconda 删除 python 语言服务器康达更新蟒蛇康达安装间谍=5.1.5

第二个或第三个命令(即 conda remove python-language-serverconda update anaconda)可能会给您错误,但没关系.只需忽略它们并继续执行其他命令即可.

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:

  • https://repo.anaconda.com/pkgs/main/linux-64
  • https://repo.anaconda.com/pkgs/main/noarch
  • https://repo.anaconda.com/pkgs/r/linux-64
  • https://repo.anaconda.com/pkgs/r/noarch

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 or third commands (i.e. conda remove python-language-server or conda update anaconda) could give you errors, but that's fine. Simply ignore them and continue with the other commands.

这篇关于无法在新的 anaconda 安装上更新 spyder=5.1.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

上一篇:带有 Python 3.5 的 Anaconda 版本 下一篇:如何在 Anaconda 中为不同的 Python 版本安装包?

相关文章

最新文章