Conda安装和更新不起作用也解决了环境获取错误 [英] Conda install and update do not work also solving environment get errors

查看:178
本文介绍了Conda安装和更新不起作用也解决了环境获取错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用蟒蛇,如下所示:

I am using anaconda as below:

(base) C:\Users\xxx>conda info

     active environment : base
    active env location : C:\Users\xxx\Documents\ANACONDA
            shell level : 1
       user config file : C:\Users\xxx\.condarc
 populated config files : C:\Users\xxx\.condarc
          conda version : 4.7.11
    conda-build version : 3.18.9
         python version : 3.6.9.final.0
       virtual packages :
       base environment : C:\Users\xxx\Documents\ANACONDA  (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\xxx\Documents\ANACONDA\pkgs
                          C:\Users\xxx\.conda\pkgs
                          C:\Users\xxx\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\xxx\Documents\ANACONDA\envs
                          C:\Users\xxx\.conda\envs
                          C:\Users\xxx\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.7.11 requests/2.22.0 CPython/3.6.9 Windows/10 Windows/10.0.16299
          administrator : False
             netrc file : None
           offline mode : False

现在我有2个问题使我的工作停止. 1)我不能对任何软件包使用conda install. 它会给我solving environment中的错误列表:

Now I have 2 issues that stop my work. 1) I cannot use conda install for any package. It will give me the error in solving environment list this:

failed with initial frozen solve. Retrying with flexible solve.

然后它将再次失败并给出如下消息:

then it will fail again and give message like this:

Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.

即使在检查了不兼容的软件包之后,它也没有给我解决方案.

Even after the checking for incompatible packages, it didn't give me the solution.

2)当我想通过以下命令升级或降级conda时:

2) When I want to upgrade or downgrade conda by the command:

conda update -n base conda

conda install conda = 4.6.11

它将再次给我solving environment中的错误,我认为这与第一个问题有关.

It will give me errors again in the solving environment, and I think this is related to the first issue.

现在我无法使用conda进行任何操作,请告知并谢谢您!

Now I cannot use conda for anything, please advise and thank you!

推荐答案

我遇到了同样的问题,找不到解决方案,但确实找到了解决方法.如果您创建一个环境并激活该环境,然后进行安装,则看起来一切正常.如果您不需要很多库,我会尝试一下.

I ran into the same problem and I couldn't find a solution, but I did find a workaround. If you create an env and activate that env and then do the install, it seems to work just fine. If you don't need a lot of libraries I would try that.

命令是:

  1. 创建环境

conda create --name myenv

  1. 激活环境

conda activate myenv

这篇关于Conda安装和更新不起作用也解决了环境获取错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆