Conda 安装和更新不起作用也解决了环境错误

Conda install and update do not work also solving environment get errors(Conda 安装和更新不起作用也解决了环境错误)
本文介绍了Conda 安装和更新不起作用也解决了环境错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我正在使用 anaconda,如下所示:

I am using anaconda as below:

(base) C:Usersxxx>conda info

     active environment : base
    active env location : C:UsersxxxDocumentsANACONDA
            shell level : 1
       user config file : C:Usersxxx.condarc
 populated config files : C:Usersxxx.condarc
          conda version : 4.7.11
    conda-build version : 3.18.9
         python version : 3.6.9.final.0
       virtual packages :
       base environment : C:UsersxxxDocumentsANACONDA  (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:UsersxxxDocumentsANACONDApkgs
                          C:Usersxxx.condapkgs
                          C:UsersxxxAppDataLocalcondacondapkgs
       envs directories : C:UsersxxxDocumentsANACONDAenvs
                          C:Usersxxx.condaenvs
                          C:UsersxxxAppDataLocalcondacondaenvs
               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

求解环境会再次报错,我认为这与第一个问题有关.

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 安装和更新不起作用也解决了环境错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

python arbitrarily incrementing an iterator inside a loop(python在循环内任意递增迭代器)
Joining a set of ordered-integer yielding Python iterators(加入一组产生 Python 迭代器的有序整数)
Iterating over dictionary items(), values(), keys() in Python 3(在 Python 3 中迭代字典 items()、values()、keys())
What is the Perl version of a Python iterator?(Python 迭代器的 Perl 版本是什么?)
How to create a generator/iterator with the Python C API?(如何使用 Python C API 创建生成器/迭代器?)
Python generator behaviour(Python 生成器行为)