Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
312 views
in Technique[技术] by (71.8m points)

python - Conda install and update do not work also solving environment get errors

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

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) When I want to upgrade or downgrade conda by the command:

conda update -n base conda

or

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.

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.

Commands are:

  1. Create env
conda create --name myenv
  1. Activate the env
conda activate myenv

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...