2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
If other methods do not work, you can also try to disable SSL verification to solve the problem. The specific steps are as follows:
Enter the following command in the terminal to turn off SSL verification:
conda config --set ssl_verify false
Alternatively, add a line to conda's configuration file (.condarc) to turn off SSL verification:
ssl_verify: false
Then try to install the package again. Please note that disabling SSL verification has certain security risks, so it is recommended to use this method only when necessary.
The above is the solutionconda
There are several possible solutions to the problem of "An HTTP error occurred when trying to retrieve this URL" when installing a package. You can try the appropriate method according to the specific situation. At the same time, in order to better solve this problem, it is recommended to check whether the network connection is normal, try to use a different network environment, or wait for a while before installing.
Remove the existing source configuration:
conda config --remove-key channels
Re-add Tsinghua source:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --set show_channel_urls yes
See the effect:
cat ~/.condarc
Through the above steps, you can reset and configure Tsinghua University Open Source Software Mirror Station toconda
This can speed up package downloads and resolve installation failures caused by network issues.