Skip to content

Commit

Permalink
Update content src/site/notes/ProgrammingLanguages/python/conda.md
Browse files Browse the repository at this point in the history
  • Loading branch information
1024daniel committed Sep 13, 2024
1 parent 12b64bd commit 8ac971a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/site/notes/ProgrammingLanguages/python/conda.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@
{"dg-publish":true,"permalink":"/ProgrammingLanguages/python/conda/","noteIcon":"3"}
---

conda install <>
conda env list
conda

### conda 安装

```sh
# 安装之后需要执行conda init,这会在linux的~/.bashrc,mac的~/.bash_profile里面加上conda需要的一些初始化设置好让终端打开就能初始化相关环境变量,如果删除anaconda之后重新安装的话需要先清理对应的bashrc的代码片段
conda init
# 对于mac需要设置打开terminal生效默认环境,需要在~/.zshrc中设置,~/.zprofile中设置没有生效
conda config --set auto_activate_base true # 默认进入base环境, 对应的设置会写入~/.condarc

```


### 1.环境创建
Expand All @@ -31,6 +38,8 @@ conda info
conda env list
conda activate modellink



```

基于当前环境配置安装pip包
Expand Down

0 comments on commit 8ac971a

Please sign in to comment.