conda创建虚拟环境报403错误,该如何解决
2026/6/13 22:25:27 网站建设 项目流程

1. 创建新的虚拟环境的报错

conda create -n opengl python=3.9

报如下错误

Downloading and Extracting Packages: CondaHTTPError: HTTP 403 FORBIDDEN for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/openssl-3.0.> Elapsed: 00:00.185461 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. CondaHTTPError: HTTP 403 FORBIDDEN for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/openssl-3.0.> Elapsed: 00:00.185461 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. CondaHTTPError: HTTP 403 FORBIDDEN for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/setuptools-8> Elapsed: 00:00.192208 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. CondaHTTPError: HTTP 403 FORBIDDEN for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch/pip-25.3-pyh> Elapsed: 00:00.192726 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.

2. 解决办法

将home目录下的文件 `~/.condarc` 删除,然后再创建虚拟环境,就成功了。

win平台在用户目录下的 `.condarc` 文件

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询