Anaconda Navigator不更新软件包

时间:2019-03-13 14:40:30

标签: python pip anaconda conda

我正在尝试通过Anaconda Navigator更新我的环境。但是它无法更新某些软件包。如您所见,“应用”按钮处于非活动状态,并显示一条消息“已安装软件包”,但是该软件包仍在“可更新”页面中。另外,Spyder告诉我每次启动时都要更新nbconvert。

Error message

我尝试过:

  • conda更新conda
  • conda更新anaconda-navigator
  • conda更新导航器更新程序
  • conda更新--all -y

但是这些软件包仍在可更新列表中。

这是conda信息输出:

C:\Users\user>conda info

     active environment : None
       user config file : C:\Users\user\.condarc
 populated config files : C:\Users\user\.condarc
          conda version : 4.6.8
    conda-build version : 3.17.8
         python version : 3.6.8.final.0
       base environment : C:\Users\ismetb\Anaconda3  (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:\Users\user\Anaconda3\pkgs
                          C:\Users\user\.conda\pkgs
                          C:\Users\user\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\user\Anaconda3\envs
                          C:\Users\user\.conda\envs
                          C:\Users\user\AppData\Local\conda\conda\envs
               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

我该如何解决?

3 个答案:

答案 0 :(得分:3)

我发现可以使用的解决方案是在anaconda网站上找到的alternative method

在终端中输入:

class MyEasyRange:
    def __init__(self, start, stop): ... # Same as for MyRange

    def __iter__(self):  # Generator function is simpler (and faster)
                         # than writing your own iterator class
         current = self.start  # Can't mutate attributes, because multiple iterators might rely on this one iterable
         while current < self.stop:
             yield current     # Produces value and freezes generator until iteration resumes
             current += 1
         # reaching the end of the function acts as implicit StopIteration for a generator

其次:

conda deactivate

其他解决方案更新了软件包,但没有更新Anaconda Navigator本身。对于您而言,似乎该问题可能并未首先停用。

答案 1 :(得分:1)

遇到了类似的问题。通过命令行“ conda更新anaconda ”与Anaconda Troubleshooting

一起解决了

答案 2 :(得分:-1)

在anaconda导航器中:

  1. 右键单击包装
  2. 然后选择特定功能
  3. 然后申请。

问题应该现在解决。