linux创建虚拟环境时报错:ProxyError: Conda cannot proceed due to an error in your proxy configuration.
·
主要是由于Conda在创建虚拟环境时遇到了代理设置问题。
Conda 会访问外网源(比如 Anaconda 或 TUNA 镜像),而你的网络环境可能需要通过代理服务器才能访问这些源。
推荐:正确设置 Miniforge3 为国内镜像源(以清华源为例)
1、编辑 ~/.condarc 文件
nano ~/.condarc
写下如下内容:排最前面那一行的 conda-forge 必须是 TUNA 镜像
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
show_channel_urls: true
2、查看已生效的 channels
conda config --show channels
3、重新创建虚拟环境:
conda create -n your_env_name python=3.10
更多推荐

所有评论(0)