anaconda创建新环境默认在C盘无法更改

anaconda创建新环境默认在C盘无法更改

在 C:\Users\用户名下有一个 .condarc 文件,将其打开,如果没有:
通过在cmd中输入命令

复制代码
conda config --set show_channel_urls yes

然后在自己当前的用户名下就可以找到该文件,生成该文件时再进行修改

复制代码
channels:
  - defaults
show_channel_urls: true
default_channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
  conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch-lts: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

在最后面添加

复制代码
envs_dirs:
  - E://anaconda//anaconda//anaconda3//envs

这个路径根据自己的情况设置,我的anaconda是安装在了 E:\anaconda\anaconda\anaconda3\envs下,因此环境的存放位置就是上面的那个路径。

接下来再重新创建即可

C盘里的可删

相关推荐
love530love3 小时前
【笔记】ComfUI RIFEInterpolation 节点缺失问题(cupy CUDA 安装)解决方案
人工智能·windows·笔记·python·插件·comfyui
M***Z2107 小时前
如何在Windows系统上安装和配置Node.js及Node版本管理器(nvm)
windows·node.js
love530love8 小时前
【保姆级教程】Windows + Podman 从零部署 Duix-Avatar 数字人项目
人工智能·windows·笔记·python·数字人·podman·duix-avatar
tobebetter952716 小时前
How to manage python versions on windows
开发语言·windows·python
q***718517 小时前
windows下安装并使用node.js
windows·node.js
q***925119 小时前
Windows上安装Go并配置环境变量(图文步骤)
开发语言·windows·golang
凭栏落花侧20 小时前
打印机脱机状态应该怎么处理
windows
q***57741 天前
MySQL 实验1:Windows 环境下 MySQL5.5 安装与配置
windows·mysql·adb
q***31831 天前
Windows安装Rust环境(详细教程)
开发语言·windows·rust