Conda install and update do not work also solving environment get errors(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.
命令是:
- 创建环境
conda create --name myenv
- 激活环境
conda activate myenv
这篇关于Conda 安装和更新不起作用也解决了环境错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Conda 安装和更新不起作用也解决了环境错误
基础教程推荐
- 使用大型矩阵时禁止 Pycharm 输出中的自动换行符 2022-01-01
- 包装空间模型 2022-01-01
- 无法导入 Pytorch [WinError 126] 找不到指定的模块 2022-01-01
- Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙? 2022-01-01
- PANDA VALUE_COUNTS包含GROUP BY之前的所有值 2022-01-01
- 在Python中从Azure BLOB存储中读取文件 2022-01-01
- 修改列表中的数据帧不起作用 2022-01-01
- 求两个直方图的卷积 2022-01-01
- PermissionError: pip 从 8.1.1 升级到 8.1.2 2022-01-01
- 在同一图形上绘制Bokeh的烛台和音量条 2022-01-01
