mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user