Skip to content

Commit 5b420f1

Browse files
rlam3thinkallekzhu
authored
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 <[email protected]> * fix with pre-commit --------- Co-authored-by: Li Jiang <[email protected]> Co-authored-by: Eric Zhu <[email protected]>
1 parent ebd5de9 commit 5b420f1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

website/docs/Installation.md

+20
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,26 @@ The following command will deactivate the current `conda` environment:
3131
conda deactivate
3232
```
3333

34+
### Option 3: poetry
35+
36+
Another option is with `poetry`, which is a dependency manager for Python.
37+
38+
[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.
39+
40+
You can install it by following [this doc](https://python-poetry.org/docs/#installation),
41+
and then create a virtual environment as below:
42+
```bash
43+
poetry init
44+
poetry shell
45+
46+
poetry add pyautogen
47+
```
48+
49+
The following command will deactivate the current `poetry` environment:
50+
```bash
51+
exit
52+
```
53+
3454
Now, you're ready to install AutoGen in the virtual environment you've just created.
3555

3656
## Python

0 commit comments

Comments
 (0)