- powershell 配置文件位置
C:\Users\29544\Documents\WindowsPowerShell\profile.ps1
- 修改自定义启动conda环境
#region conda initialize
# !! Contents within this block are managed by 'conda init' !!
(& "D:\software\Anaconda3\Scripts\conda.exe" "shell.powershell" "hook") | Out-String | Invoke-Expression
#endregion
conda activate torch_cuda_env # my activation
- 效果,启动直接进入 torch_cuda_env 环境

文章讲述了如何在WindowsPowerShell的配置文件中设置脚本,以便于每次启动时自动激活名为torch_cuda_env的Conda环境。通过`condainitialize`区域和`condaactivatetorch_cuda_env`命令,用户可以实现无交互式地进入这个特定环境。
1567

被折叠的 条评论
为什么被折叠?



