Add poetry setup (#824)

* Add poetry setup

* Add description of poetry linking to it's docs

* Update website/docs/Installation.md

Co-authored-by: Li Jiang <bnujli@gmail.com>

* fix with pre-commit

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
This commit is contained in:
rlam3
2023-12-26 01:49:20 -06:00
committed by GitHub
parent ebd5de9501
commit 5b420f1d9a

View File

@@ -31,6 +31,26 @@ The following command will deactivate the current `conda` environment:
conda deactivate
```
### Option 3: poetry
Another option is with `poetry`, which is a dependency manager for Python.
[Poetry](https://python-poetry.org/docs/) is a tool for dependency management and packaging in Python. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. Poetry offers a lockfile to ensure repeatable installs, and can build your project for distribution.
You can install it by following [this doc](https://python-poetry.org/docs/#installation),
and then create a virtual environment as below:
```bash
poetry init
poetry shell
poetry add pyautogen
```
The following command will deactivate the current `poetry` environment:
```bash
exit
```
Now, you're ready to install AutoGen in the virtual environment you've just created.
## Python