Solve the problem that Anaconda cannot install the library and Spyder cannot install the library, taking tensorflow as an example

I have always encountered a big problem when installing tensorflow with Spyder, that is, it has not been installed.


There will be such a prompt, and there is also a prompt on it, the license problem winerro13, I skipped it, there is no screenshot

But when I execute his command, python -m pip install --upgrade pip,

The same fails and the error is


I keep repeating the installation, I can't solve it

Some people on the Internet say that the administrator uses conda to install in cmd


Continue to report an error, showing that it cannot be accessed

    It should be that repo.continuum.io is abroad, and the domestic access speed is too slow and causes timeout

Solution: 1. Add the "Tsinghua Mirror" channel and execute in Anaconda Prompt:

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

2. Delete the -default line in the configuration file

File Path: C:\Users\UsernameXXX\.condarc


Execute the update command again to update normally.


The problem is that I didn't fix this in the end either, python -m pip install --upgrade pip

I hope some friends can leave a message to see the reason for this problem

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325347144&siteId=291194637