diff --git a/api/README.md b/api/README.md index 6e9f2e8fbb..c3abc25be1 100644 --- a/api/README.md +++ b/api/README.md @@ -37,7 +37,13 @@ 4. Create environment. - Dify API service uses [Poetry](https://python-poetry.org/docs/) to manage dependencies. You can execute `poetry shell` to activate the environment. + Dify API service uses [Poetry](https://python-poetry.org/docs/) to manage dependencies. First, you need to add the poetry shell plugin, if you don't have it already, in order to run in a virtual environment. [Note: Poetry shell is no longer a native command so you need to install the poetry plugin beforehand] + + ```bash + poetry self add poetry-plugin-shell + ``` + + Then, You can execute `poetry shell` to activate the environment. 5. Install dependencies