Skip to content

Commit

Permalink
Update Installation.md (microsoft#456)
Browse files Browse the repository at this point in the history
* Update Installation.md

Replace autogen->pyautogen in env setup to avoid confusion

Related issue: microsoft#211

* Update Installation.md

Add deactivation instructions

* Update website/docs/Installation.md

Co-authored-by: Chi Wang <[email protected]>

---------

Co-authored-by: Chi Wang <[email protected]>
  • Loading branch information
gagb and sonichi authored Oct 28, 2023
1 parent 9ef44dd commit 168b27f
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions website/docs/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,27 @@ 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
source autogen/bin/activate
python3 -m venv pyautogen
source pyautogen/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),
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
```

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.
Expand Down

0 comments on commit 168b27f

Please sign in to comment.