Add/fix windows install instructions (#6579)

## Why are these changes needed?

Install instructions for Windows are missing or incorrect

## Related issue number

closes https://github.com/microsoft/autogen/issues/6577

## Checks

- [ ] I've included any doc changes needed for
<https://microsoft.github.io/autogen/>. See
<https://github.com/microsoft/autogen/blob/main/CONTRIBUTING.md> to
build and test documentation locally.
- [ ] I've added tests (if relevant) corresponding to the changes
introduced in this PR.
- [ ] I've made sure all auto checks have passed.

Co-authored-by: Victor Dibia <victordibia@microsoft.com>
This commit is contained in:
peterychang 2025-05-22 15:36:56 -04:00 committed by GitHub
parent 0a81100f72
commit 726e0be110
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 25 additions and 4 deletions

View File

@ -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

View File

@ -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",

View File

@ -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

View File

@ -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