問題描述
我正在使用 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 安裝和更新不起作用也解決了環境錯誤的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!