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

相关推荐
川川菜鸟3 小时前
Claude Code 安装与配置完整指南(Windows)
windows
All The Way North-3 小时前
彻底掌握 RNN(实战):PyTorch API 详解、多层RNN、参数解析与输入机制
pytorch·rnn·深度学习·循环神经网络·参数详解·api详解
PfCoder5 小时前
WinForm真入门(23)---PictureBox 控件详细用法
开发语言·windows·c#·winform
Mr_Xuhhh5 小时前
MySQL表的增删改查(CRUD)操作详解
数据库·windows
老姚---老姚5 小时前
在windows下编译go语言编写的dll库
开发语言·windows·golang
love530love6 小时前
技术复盘:llama-cpp-python CUDA 编译实战 (Windows)
人工智能·windows·python·llama·aitechlab·cpp-python·cuda版本
koo3648 小时前
pytorch深度学习笔记19
pytorch·笔记·深度学习
A先生的AI之旅9 小时前
2026-1-30 LingBot-VA解读
人工智能·pytorch·python·深度学习·神经网络
开开心心就好9 小时前
键盘改键工具免安装,自定义键位屏蔽误触
java·网络·windows·随机森林·计算机外设·电脑·excel
2601_9495328410 小时前
Psello HTML Template: A Developer‘s Deep-Dive Review and Guide - Download Free
前端·windows·html·seo·wordpress·gpl