mirror of
https://github.com/microsoft/autogen.git
synced 2025-12-27 06:59:03 +00:00
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:
parent
0a81100f72
commit
726e0be110
@ -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
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user