首页 > 编程语言 >解决conda安装虚拟Python环境联网失败问题

解决conda安装虚拟Python环境联网失败问题

时间:2022-10-03 10:23:04浏览次数:67  
标签:cn mirrors Python -- 虚拟 conda edu config

  1. 使用 conda create -n carla python=3.7 命令安装虚拟环境出错,说网络连接异常,经久查询未果:
    在这里插入图片描述

  2. 在终端输入下面这些:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
  1. 走进 C:/Users/USER_NAME/.condarc,删除内部的 -defaults 选项,保存退出;
    在这里插入图片描述

  2. 重新运行 conda create -n carla python=3.7 指令即可。




作者:艾孜尔江·艾尔斯兰

标签:cn,mirrors,Python,--,虚拟,conda,edu,config
From: https://www.cnblogs.com/ezhar/p/16750099.html

相关文章