Skip to content

Commit

Permalink
doc: update docs/conda.md (#417)
Browse files Browse the repository at this point in the history
添加: 设置指定环境为默认环境
```bash
vim ~/.bashrc
export PATH="~/anaconda/envs/ENVNAME/bin:$PATH"  # 文件末尾添加
conda activate ENVNAME  # :wq 保存并关闭
source ~/.bashrc  # 更新
conda config --set auto_activate_base false # 禁用auto activate base环境
```
  • Loading branch information
MackDing committed Aug 18, 2023
1 parent bcc6cb6 commit 39fb814
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/conda.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,18 @@ conda clean --all # 清除所有未使用的文件
conda config --show # 检查conda配置
```


设置指定环境为默认环境

```bash
vim ~/.bashrc
export PATH="~/anaconda/envs/ENVNAME/bin:$PATH" # 文件末尾添加
conda activate ENVNAME # :wq 保存并关闭
source ~/.bashrc # 更新
conda config --set auto_activate_base false # 禁用auto activate base环境
```


### 额外提示

```bash
Expand Down

0 comments on commit 39fb814

Please sign in to comment.