故障排除¶
此页面详细介绍了一些常见问题及其各自的解决方法。有关 Anaconda 安装或技术支持选项,请访问我们的 支持服务页面。
403 错误¶
原因¶
403 错误是在客户端被禁止访问资源的情况下由 Web 服务器发出的通用禁止错误。
您收到的 403 错误可能如下所示:
Collecting package metadata (current_repodata.json): failed
UnavailableInvalidChannel: The channel is not accessible or is invalid.
channel name: pkgs/main
channel url: https://repo.anaconda.com/pkgs/main
error code: 403
You will need to adjust your conda configuration to proceed.
Use `conda config --show channels` to view your configuration's current state,
and use `conda config --show-sources` to view config file locations.
There are several reasons a 403 error could be received:
收到此错误有几个可能的原因:
- 用户在他们的配置中错误地配置了他们的频道(例如,存储令牌的安全位置被意外删除(最常见)
- 防火墙或其他安全设备或系统阻止用户访问(第二常见)
- 由于潜在的服务条款违规(第三常见),我们正在阻止他们的访问
HTTP 000 连接失败¶
如果您收到此错误消息,请先运行以下命令:
conda config --set ssl_verify false
然后,运行以下命令进行安装conda-token
:
conda install conda-token -n root
最后,运行以下命令以确保令牌验证步骤忽略 SSL 错误:
# Replace <TOKEN> with your token
conda token set --no-ssl-verify <TOKEN>
您可能会看到以下警告,但这是意料之中的:
/Users/<USER_NAME>/Applications/miniconda3/lib/python3.7/site-packages/urllib3/connectionpool.py:1020: InsecureRequestWarning: Unverified HTTPS request is being made to host 'repo.anaconda.cloud'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,