| 4. Create environment. | 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 | 5. Install dependencies | ||||