問(wèn)題描述
我正在使用 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
現(xiàn)在我有 2 個(gè)問(wèn)題阻止了我的工作.1) 我不能將 conda install
用于任何軟件包.它會(huì)給我 solving environment
中的錯(cuò)誤,請(qǐng)列出:
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.
然后它會(huì)再次失敗并給出這樣的消息:
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.
即使在檢查了不兼容的包之后,它也沒(méi)有給我解決方案.
Even after the checking for incompatible packages, it didn't give me the solution.
2)當(dāng)我想通過(guò)命令升級(jí)或降級(jí)conda時(shí):
2) When I want to upgrade or downgrade conda by the command:
conda update -n base conda
或
conda install conda = 4.6.11
求解環(huán)境
會(huì)再次報(bào)錯(cuò),我認(rèn)為這與第一個(gè)問(wèn)題有關(guān).
It will give me errors again in the solving environment
, and I think this is related to the first issue.
現(xiàn)在我什么都不能用 conda,請(qǐng)指教,謝謝!
Now I cannot use conda for anything, please advise and thank you!
推薦答案
我遇到了同樣的問(wèn)題,我找不到解決方案,但我確實(shí)找到了解決方法.如果您創(chuàng)建一個(gè)環(huán)境并激活該環(huán)境然后進(jìn)行安裝,它似乎工作得很好.如果您不需要很多庫(kù),我會(huì)嘗試.
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.
命令是:
- 創(chuàng)建環(huán)境
conda create --name myenv
- 激活環(huán)境
conda activate myenv
這篇關(guān)于Conda 安裝和更新不起作用也解決了環(huán)境錯(cuò)誤的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!