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盘里的可删

相关推荐
creator_Li32 分钟前
深度学习 学习笔记
pytorch·深度学习
张人玉1 小时前
基于 C# / .NET 8 + Windows Forms + SQLite 的桌面银行业务演示系统——华夏示范银行管理系统
windows·sqlite·c#·.net
派大_星2 小时前
基于 PyTorch 的 CNN 图片分类学习
pytorch·分类·cnn
Mr-Apple3 小时前
系统找不到指定的文件-CreateInstance/CreateVm/HCS/ERROR_FILE_NOT_FOUND
linux·windows·ubuntu·wsl
JSUITDLWXL4 小时前
jitsi-windows-local-translation
windows
RobinDevNotes6 小时前
模型训练工程师必须搞懂的DDP和FSDP
人工智能·pytorch
洛阳纸贵6 小时前
AI-PyTorch(一)基础代码实操和自动求导
人工智能·pytorch·python
点亮~黑夜6 小时前
远程连接浏览无桌面服务器上的图片
windows·软件构建
Albart5756 小时前
Docker Desktop 增量更新失败终极排查:Failed to apply delta update 反复回滚怎么办?
windows·docker·容器·docker部署大模型
Patrick在香港6 小时前
Claude + Python 数据管道:一次字段改名,786 行历史数据被静默重写
开发语言·windows·python·claude·数据工程·数据校验·数据管道