From 466f0c9c97658e9bbe8fe7ad72b76c7a20f6de05 Mon Sep 17 00:00:00 2001 From: YuhaoWU <31399290+KennyNg-19@users.noreply.github.com> Date: Tue, 25 Jul 2023 16:58:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E8=A3=85=E6=95=99=E7=A8=8Bconda=20cre?= =?UTF-8?q?ate=E6=96=B0=E5=A2=9E=E9=BB=98=E8=AE=A4=E7=9A=84/envs=E4=B8=8B?= =?UTF-8?q?=E9=9D=A2=EF=BC=8C=E8=80=8C=E4=B8=8D=E5=8F=AA=E6=98=AF=E5=8F=AA?= =?UTF-8?q?=E8=83=BD=E8=A6=81=E9=A2=9D=E5=A4=96=E6=8C=87=E5=AE=9A=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=20=E7=94=A8-p=20=20(#482)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update 安装教程中conda虚拟环境的创建与激活 --- README_en.md | 4 ++++ docs/INSTALL.md | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/README_en.md b/README_en.md index 79edb91..249962d 100644 --- a/README_en.md +++ b/README_en.md @@ -87,6 +87,10 @@ $ conda create -p /your_path/env_name python=3.8 # Activate the environment $ source activate /your_path/env_name +# or, do not specify an env path, note that /your_path/env_name is to be replaced with env_name below +$ conda create -n env_name python=3.8 +$ conda activate env_name # Activate the environment + # Deactivate the environment $ source deactivate /your_path/env_name diff --git a/docs/INSTALL.md b/docs/INSTALL.md index 2682c7b..cd3c51d 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -12,6 +12,12 @@ $ conda create -p /your_path/env_name python=3.8 # 激活环境 $ source activate /your_path/env_name + +# 或,conda安装,不指定路径, 注意以下,都将/your_path/env_name替换为env_name +$ conda create -n env_name python=3.8 +$ conda activate env_name # Activate the environment + +# 更新py库 $ pip3 install --upgrade pip # 关闭环境