修改conda源和虚拟环境路径

1、修改conda默认源

bash 复制代码
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes

2、修改conda默认虚拟环境路径

2.1、先获取conda配置信息
bash 复制代码
conda config --show
2.2、配置虚拟环境

命令行中的 D:\Programs\miniconda3\envs 改为自己的路径

并且需要给目录授权,参考链接https://blog.csdn.net/qq_43212606/article/details/134181048

bash 复制代码
conda config --add envs_dirs D:\Programs\miniconda3\envs
相关推荐
正在走向自律28 分钟前
Conda 完全指南:从环境管理到工具集成
开发语言·python·conda·numpy·fastapi·pip·开发工具
小oo呆20 小时前
【学习心得】Jupyter 如何在conda的base环境中其他虚拟环境内核
python·jupyter·conda
zhang-hui1 天前
PowerShell 实现 conda 懒加载
conda
请你喝好果汁6411 天前
学习笔记:Conda 环境共享
笔记·学习·conda
珊珊而川1 天前
conda init执行了还是不好用
conda
Eric.Lee20212 天前
Ubuntu shell指定conda的python环境启动脚本
python·ubuntu·conda·shell
Echo丶洛尘2 天前
Pycharm中No Conda enviroment selected
pycharm·conda
tyn1883 天前
记录一次conda虚拟环境pip安装报错[WinError 32] 另一个程序正在使用此文件,进程无法访问
windows·conda·pip·虚拟环境·虚环境
陈苏同学3 天前
[已解决] VS Code / Cursor / Trae 的 PowerShell 终端 conda activate 进不去环境的常见问题
linux·windows·conda
Eric.Lee20213 天前
conda 输出指定python环境的库 输出为 yaml文件
linux·python·conda