Skip to content

A programming framework for agentic AI

Add/fix windows install instructions (#6579)

peterychang726e0be110e6
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/installation.md b/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/installation.md
index 8171ff16a..c84e45d5b 100644
--- a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/installation.md
+++ b/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/installation.md
@@ -17,13 +17,19 @@ When installing AgentChat locally, we recommend using a virtual environment for
Create and activate:
+Linux/Mac:
```bash
-# On Windows, change `python3` to `python` (if `python` is Python 3).
python3 -m venv .venv
-# On Windows, change `bin` to `scripts`.
source .venv/bin/activate
```
+Windows command-line:
+```batch
+# The command may be `python3` instead of `python` depending on your setup
+python -m venv .venv
+.venv\Scripts\activate.bat
+```
+
To deactivate later, run:
```bash
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/models.ipynb b/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/models.ipynb
index 4be55fe4b..a0b9d1cb4 100644
--- a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/models.ipynb
+++ b/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/models.ipynb
@@ -452,10 +452,11 @@
"metadata": {},
"outputs": [],
"source": [
+ "from pathlib import Path\n",
+ "\n",
+ "from autogen_core import Image\n",
"from autogen_core.models import UserMessage\n",
"from autogen_ext.models.openai import OpenAIChatCompletionClient\n",
- "from autogen_core import Image\n",
- "from pathlib import Path\n",
"\n",
"# Text\n",
"model_client = OpenAIChatCompletionClient(\n",
diff --git a/python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/installation.md b/python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/installation.md
index ba8f562f1..5b370d4cc 100644
--- a/python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/installation.md
+++ b/python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/installation.md
@@ -19,11 +19,18 @@ We recommend using a virtual environment as this will ensure that the dependenci
Create and activate:
+Linux/Mac:
```bash
python3 -m venv .venv
source .venv/bin/activate
```
+Windows command-line:
+```batch
+python3 -m venv .venv
+.venv\Scripts\activate.bat
+```
+
To deactivate later, run:
```bash
diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/installation.md b/python/packages/autogen-core/docs/src/user-guide/core-user-guide/installation.md
index 641ba5f1a..400b5e1ab 100644
--- a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/installation.md
+++ b/python/packages/autogen-core/docs/src/user-guide/core-user-guide/installation.md
@@ -10,11 +10,18 @@ When installing AgentChat locally, we recommend using a virtual environment for
Create and activate:
+Linux/Mac:
```bash
python3 -m venv .venv
source .venv/bin/activate
```
+Windows command-line:
+```batch
+python3 -m venv .venv
+.venv\Scripts\activate.bat
+```
+
To deactivate later, run:
```bash