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

前端 未结 8 1124
眼角桃花
眼角桃花 2020-12-24 10:54

I am using anaconda as below:

(base) C:\\Users\\xxx>conda info

     active environment : base
    active env location : C:\\Users\\xxx\\Documents\\ANACON         


        
相关标签:
8条回答
  • 2020-12-24 11:45

    If your conda version is greater than or equal to 4.8, you may see that error.

    (base) [localhost ~]$ conda --version
    conda 4.8.2
    (base) [localhost ~]$ conda install -c anaconda requests-kerberos
    Collecting package metadata (current_repodata.json): done
    Solving environment: failed with initial frozen solve. Retrying with flexible solve.
    Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
    

    Downgrade your conda if possible using the following commands

    conda config --set allow_conda_downgrades true
    conda install conda=4.6.14
    

    Then create your virtual environment:

    conda create --name myenv_conda
    

    Then activate your myenv_conda

    conda activate myenv_conda
    

    Now try to install packages using conda -c install anaconda

    eg: conda install -c conda requests-kerberos
    
    output:
    (myenv_conda) [localhost ~]$ conda install -c anaconda requests-kerberos
    Collecting package metadata: done
    Solving environment: done
    ....
    ....
    ....
    Preparing transaction: done
    Verifying transaction: done
    Executing transaction: done
    
    0 讨论(0)
  • 2020-12-24 11:46

    You may downgrade to an older version of conda 4.6.14 and then install your packages.

    conda config --set allow_conda_downgrades true
    conda install conda=4.6.14
    
    0 讨论(0)
提交回复
热议问题