Solving environment: failed with initial frozen solve. Retrying with flexible solve.

error1:

Solving environment: failed with initial frozen solve. Retrying with flexible solve.

error2:

Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.

 

Solution 1: Installation tool problem

The above error occurs when using conda install to install the package, use pip install to install the package -i https://pypi.tuna.tsinghua.edu.cn/simple/

Solution 2: Mirror source problem

1. conda config, create a .condarc file

2. conda config --show-sources, view the path of the .condarc file

3. Open the configuration file .condarc of the conda application. If the content in the file is empty brackets, run the following command on the command line:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes

4. conda remove -n virtual environment name --all: delete the current virtual environment

5. conda create -n tensorflow (virtual environment name) python=version number: re-create the virtual environment, install the necessary packages, and the problem is solved.

Guess you like

Origin blog.csdn.net/qq_40108803/article/details/125495425