From ed3c6e1ce0391a9672f9b4f7dd39f53208008962 Mon Sep 17 00:00:00 2001 From: gagb Date: Fri, 27 Oct 2023 13:41:40 -0700 Subject: [PATCH 1/3] Update Installation.md Replace autogen->pyautogen in env setup to avoid confusion Related issue: #211 --- website/docs/Installation.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/docs/Installation.md b/website/docs/Installation.md index 193e1383974..989b24f12ac 100644 --- a/website/docs/Installation.md +++ b/website/docs/Installation.md @@ -8,7 +8,7 @@ When not using a docker container, we recommend using a virtual environment to i You can create a virtual environment with `venv` as below: ```bash -python3 -m venv autogen +python3 -m venv pyautogen source autogen/bin/activate ``` @@ -17,8 +17,8 @@ source autogen/bin/activate Another option is with `Conda`, Conda works better at solving dependency conflicts than pip. You can install it by following [this doc](https://docs.conda.io/projects/conda/en/stable/user-guide/install/index.html), and then create a virtual environment as below: ```bash -conda create -n autogen python=3.10 # python 3.10 is recommended as it's stable and not too old -conda activate autogen +conda create -n pyautogen python=3.10 # python 3.10 is recommended as it's stable and not too old +conda activate pyautogen ``` Now, you're ready to install AutoGen in the virtual environment you've just created. From a19f909ef93b01af26f5b5d2f657ff561ea606e8 Mon Sep 17 00:00:00 2001 From: gagb Date: Fri, 27 Oct 2023 16:39:45 -0700 Subject: [PATCH 2/3] Update Installation.md Add deactivation instructions --- website/docs/Installation.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/website/docs/Installation.md b/website/docs/Installation.md index 989b24f12ac..26d9edadcd8 100644 --- a/website/docs/Installation.md +++ b/website/docs/Installation.md @@ -12,6 +12,11 @@ python3 -m venv pyautogen source autogen/bin/activate ``` +The following command will deactivate the current `venv` environment: +```bash +deactivate +``` + ### Option 2: conda Another option is with `Conda`, Conda works better at solving dependency conflicts than pip. You can install it by following [this doc](https://docs.conda.io/projects/conda/en/stable/user-guide/install/index.html), @@ -21,6 +26,11 @@ conda create -n pyautogen python=3.10 # python 3.10 is recommended as it's stab conda activate pyautogen ``` +The following command will deactivate the current `conda` environment: +```bash +conda deactivate +``` + Now, you're ready to install AutoGen in the virtual environment you've just created. ## Python From 07bb9d77ef3502ff2f7fa52336c3ef599447f01b Mon Sep 17 00:00:00 2001 From: gagb Date: Fri, 27 Oct 2023 17:22:03 -0700 Subject: [PATCH 3/3] Update website/docs/Installation.md Co-authored-by: Chi Wang --- website/docs/Installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/Installation.md b/website/docs/Installation.md index 26d9edadcd8..2cacceda2c0 100644 --- a/website/docs/Installation.md +++ b/website/docs/Installation.md @@ -9,7 +9,7 @@ When not using a docker container, we recommend using a virtual environment to i You can create a virtual environment with `venv` as below: ```bash python3 -m venv pyautogen -source autogen/bin/activate +source pyautogen/bin/activate ``` The following command will deactivate the current `venv` environment: