当前位置:   article > 正文

安装Python3.12报错:HTTP 429 TOO MANY REQUESTS for url <https://mirrors.ustc.edu.cn/anaconda/pkgs/free/li_python中的too many requests

python中的too many requests

安装Python3.12报错

(base) [xxx@hadoop104 python_shell]$ conda create --name pythonThirteen python=3.12
  • 1

报错如下:

Retrieving notices: …working… ERROR conda.notices.fetch:get_channel_notice_response(63): Request error <HTTPSConnectionPool(host=‘mirrors.ustc.edu.cn’, port=443): Max retries exceeded with url: /anaconda/pkgs/free/notices.json (Caused by ReadTimeoutError(“HTTPSConnectionPool(host=‘mirrors.ustc.edu.cn’, port=443): Read timed out. (read timeout=5)”))> for channel: anaconda/pkgs/free url: https://mirrors.ustc.edu.cn/anaconda/pkgs/free/notices.json
done
Collecting package metadata (current_repodata.json): failed
CondaHTTPError: HTTP 429 TOO MANY REQUESTS for url https://mirrors.ustc.edu.cn/anaconda/pkgs/free/linux-64/current_repodata.json
Elapsed: 00:46.332444
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
https//mirrors.ustc.edu.cn/anaconda/pkgs/free/linux-64

说明 https://mirrors.ustc.edu.cn/anaconda/pkgs/free这个镜像用不了,需要删除
输入命令:

 vim ~/.condarc
  • 1

删除对应镜像,结果如下,只剩下清华大学的镜像了:
在这里插入图片描述
重新运行命令:

conda create --name pythonThirteen python=3.12
  • 1

安装成功:
在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/秋刀鱼在做梦/article/detail/953318
推荐阅读
相关标签
  

闽ICP备14008679号