問題描述
我正在嘗試通過 Anaconda Navigator 更新我的環境.但它無法更新某些軟件包.如您所見,Apply 按鈕處于非活動狀態,并且有一條消息說Package is already installed",但該包仍在可更新頁面中.此外,Spyder 告訴我在每次啟動時更新 nbconvert.
I'm trying to update my environment through Anaconda Navigator. But it fails to update some packages. As you can see, the Apply button is inactive and there is a message saying "Package is already installed" but the package is still in Updatable page. Also, Spyder tells me to update nbconvert at each start.
我試過了:
- conda 更新 conda
- conda 更新 anaconda-navigator
- conda 更新導航器更新程序
- conda 更新 --all -y
但這些包仍然在可更新列表中.
But still these packages are in Updatable list.
這是 conda 信息輸出:
This is the conda info output:
C:Usersuser>conda info
active environment : None
user config file : C:Usersuser.condarc
populated config files : C:Usersuser.condarc
conda version : 4.6.8
conda-build version : 3.17.8
python version : 3.6.8.final.0
base environment : C:UsersismetbAnaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/win-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:UsersuserAnaconda3pkgs
C:Usersuser.condapkgs
C:UsersuserAppDataLocalcondacondapkgs
envs directories : C:UsersuserAnaconda3envs
C:Usersuser.condaenvs
C:UsersuserAppDataLocalcondacondaenvs
platform : win-64
user-agent : conda/4.6.8 requests/2.21.0 CPython/3.6.8 Windows/10 Windows/10.0.17134
administrator : False
netrc file : None
offline mode : False
我該如何解決這個問題?
How can I solve this?
推薦答案
我發現可行的解決方案是 替代方法在 anaconda 網站上找到.
The solution I found to work is the alternative method found on the anaconda site.
在終端類型中:
conda deactivate
接著是:
conda update anaconda-navigator
其他解決方案更新了軟件包,但沒有更新 Anaconda Navigator 本身.在您的情況下,似乎問題可能沒有首先停用.
Other solutions updated the packages but not Anaconda Navigator itself. In your case, it seems the issue might have been not deactivating first.
這篇關于Anaconda Navigator 不更新軟件包的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!