問題描述
我安裝了 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-server
或 conda 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模板網!