From a038a095f5ef4adea95237e4897189c39daca68a Mon Sep 17 00:00:00 2001 From: jaywcjlove Date: Fri, 18 Aug 2023 08:43:55 +0000 Subject: [PATCH] doc: update docs/conda.md (#417) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加: 设置指定环境为默认环境 ```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环境 ``` 39fb8143ac2b6d634f49cd6fe8e195c8d684b9fd --- CONTRIBUTORS.svg | 78 ++++++++++++++++++++++++------------------------ docs/conda.html | 7 +++++ index.html | 2 +- 3 files changed, 47 insertions(+), 40 deletions(-) diff --git a/CONTRIBUTORS.svg b/CONTRIBUTORS.svg index eea876e0..aa119c6c 100644 --- a/CONTRIBUTORS.svg +++ b/CONTRIBUTORS.svg @@ -54,46 +54,46 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/conda.html b/docs/conda.html index c481a849..59cacf87 100644 --- a/docs/conda.html +++ b/docs/conda.html @@ -233,6 +233,13 @@ conda clean --all # 清除所有未使用的文件 conda config --show # 检查conda配置 +

设置指定环境为默认环境

+
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环境
+

额外提示

conda COMMAND --help  # 获得任何命令的帮助
 # 获取任何包裹的信息
diff --git a/index.html b/index.html
index 9848d7d2..1c044ecd 100644
--- a/index.html
+++ b/index.html
@@ -1328,7 +1328,7 @@
 
 

如果你有资源,可以很方便部署 web 版,这非常简单,只需要克隆 gh-pages 分支代码到你的静态服务就可以了,还可以使用 docker 快捷部署 web 版。

-
+