安装Python3.12报错
(base) [xxx@hadoop104 python_shell]$ conda create --name pythonThirteen python=3.12
报错如下:
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
删除对应镜像,结果如下,只剩下清华大学的镜像了:
重新运行命令:
conda create --name pythonThirteen python=3.12
安装成功: