dify plugin install failed #21667

Closed
opened 2026-02-21 20:13:46 -05:00 by yindo · 3 comments
Owner

Originally created by @Jeffhop on GitHub (Jan 15, 2026).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.11.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

1:使用工具 打包后生成langgenius-xinference_0.0.9-offline.difypkg,在页面导入这个,报错
failed to launch plugin: failed to install dependencies: failed to install dependencies: exit status 1, output: DEBUG uv 0.9.18 TRACE Checking lock for /root/.cache/uv at /root/.cache/uv/.lock DEBUG Acquired shared lock for /root/.cache/uv DEBUG Searching for default Python interpreter in virtual environments TRACE Found cached interpreter info for Python 3.12.3, skipping query of: .venv/bin/python3 DEBUG Found cpython-3.12.3-linux-x86_64-gnu at /app/storage/cwd/langgenius/xinference-0.0.9@482cd793...12 (cp312), but we only found wheels for gevent(v25.5.1) with the following Python implementation tag:cp313hint:geventwas requested with a pre-release marker (e.g., gevent>25.5.1,<25.6.dev0), but pre-releases weren't enabled (try:--prerelease=allow) DEBUG Released lock at /app/storage/cwd/langgenius/xinference-0.0.9@482cd793ea6ce86853ce6df96f6658bcedc501656bf58dc1b60dbca25c4ea4f4/.venv/.lockDEBUG Released lock at/root/.cache/uv/.lock` failed to init environment。

✔️ Expected Behavior

如何修改可以正常安装

Actual Behavior

No response

Originally created by @Jeffhop on GitHub (Jan 15, 2026). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.11.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1:使用工具 打包后生成langgenius-xinference_0.0.9-offline.difypkg,在页面导入这个,报错 failed to launch plugin: failed to install dependencies: failed to install dependencies: exit status 1, output: DEBUG uv 0.9.18 TRACE Checking lock for /root/.cache/uv at /root/.cache/uv/.lock DEBUG Acquired shared lock for /root/.cache/uv DEBUG Searching for default Python interpreter in virtual environments TRACE Found cached interpreter info for Python 3.12.3, skipping query of: .venv/bin/python3 DEBUG Found cpython-3.12.3-linux-x86_64-gnu at /app/storage/cwd/langgenius/xinference-0.0.9@482cd793...12 (cp312), but we only found wheels for gevent(v25.5.1) with the following Python implementation tag:cp313hint:geventwas requested with a pre-release marker (e.g., gevent>25.5.1,<25.6.dev0), but pre-releases weren't enabled (try:--prerelease=allow) DEBUG Released lock at /app/storage/cwd/langgenius/xinference-0.0.9@482cd793ea6ce86853ce6df96f6658bcedc501656bf58dc1b60dbca25c4ea4f4/.venv/.lockDEBUG Released lock at/root/.cache/uv/.lock` failed to init environment。 ### ✔️ Expected Behavior 如何修改可以正常安装 ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug🤔 cant-reproduce labels 2026-02-21 20:13:46 -05:00
yindo closed this issue 2026-02-21 20:13:47 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jan 15, 2026):

Your plugin install failed because the gevent dependency requires a pre-release version (e.g., gevent>25.5.1,<25.6.dev0), but the installer did not enable pre-releases, and only wheels for Python 3.13 were found, not for your Python 3.12 environment. The Dify plugin system currently does not provide a way to pass the --prerelease=allow flag to the dependency installer without modifying the plugin daemon source code, so this type of error is common with strict or pre-release dependency pins (reference).

Here are your best workarounds:

  1. Edit the plugin's dependency spec: If you can, unpack the .difypkg, edit requirements.txt or pyproject.toml to use a gevent version that is available for Python 3.12 and does not require a pre-release marker, then repackage and import the plugin.

  2. Manual wheel install: Download the correct gevent wheel for Python 3.12 on another machine, copy it into the plugin_daemon container, and manually install it in the plugin's virtual environment using pip install /path/to/gevent.whl. This can help in offline or restricted environments (reference).

  3. Custom Docker image: For fully offline or repeatable installs, build a custom Docker image for plugin_daemon with all required wheels pre-installed (reference).

If you get stuck in a failed install state, clear plugin install tasks and plugin data, then restart the plugin_daemon before retrying (reference).

For future plugins, avoid strict or pre-release dependency pins unless absolutely necessary, and always check wheel availability for your Python version.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Chat with Dosu Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Jan 15, 2026): <!-- Answer --> Your plugin install failed because the gevent dependency requires a pre-release version (e.g., `gevent>25.5.1,<25.6.dev0`), but the installer did not enable pre-releases, and only wheels for Python 3.13 were found, not for your Python 3.12 environment. The Dify plugin system currently does not provide a way to pass the `--prerelease=allow` flag to the dependency installer without modifying the plugin daemon source code, so this type of error is common with strict or pre-release dependency pins [(reference)](https://github.com/langgenius/dify-official-plugins/issues/2414). Here are your best workarounds: 1. **Edit the plugin's dependency spec**: If you can, unpack the `.difypkg`, edit `requirements.txt` or `pyproject.toml` to use a gevent version that is available for Python 3.12 and does not require a pre-release marker, then repackage and import the plugin. 2. **Manual wheel install**: Download the correct gevent wheel for Python 3.12 on another machine, copy it into the plugin_daemon container, and manually install it in the plugin's virtual environment using `pip install /path/to/gevent.whl`. This can help in offline or restricted environments [(reference)](https://github.com/langgenius/dify/issues/25961#issuecomment-3311248091). 3. **Custom Docker image**: For fully offline or repeatable installs, build a custom Docker image for plugin_daemon with all required wheels pre-installed [(reference)](https://github.com/langgenius/dify/issues/14746). If you get stuck in a failed install state, clear plugin install tasks and plugin data, then restart the plugin_daemon before retrying [(reference)](https://github.com/langgenius/dify-official-plugins/issues/1153). For future plugins, avoid strict or pre-release dependency pins unless absolutely necessary, and always check wheel availability for your Python version. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/0e672069-c5d7-47e3-895f-a844b79a53c6?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/0e672069-c5d7-47e3-895f-a844b79a53c6?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/0e672069-c5d7-47e3-895f-a844b79a53c6?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/0e672069-c5d7-47e3-895f-a844b79a53c6?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/0e672069-c5d7-47e3-895f-a844b79a53c6?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/0e672069-c5d7-47e3-895f-a844b79a53c6?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/0e672069-c5d7-47e3-895f-a844b79a53c6?feedback_type=other)</sup> [![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&nbsp;[![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=Your%20plugin%20install%20failed%20because%20the%20gevent%20dependency%20requires%20a%20pre-release%20version%20%28e.g.%2C%20%60gevent%3E25.5.1%2C%3C25.6.dev0%60%29%2C%20but%20the%20installer%20did%20not%20enable%20pre-releases%2C%20and%20only%20wheels%20for%20Python%203.13%20were%20found%2C%20not%20for%20your%20Python%203.12%20environment.%20The%20Dify%20plugin%20system%20currently%20does%20not%20provide%20a%20way%20to%20pass%20the%20%60--prerelease%3Dallow%60%20flag%20to%20the%20dependency%20installer%20without%20modifying%20the%20plugin%20daemon%20source%20code%2C%20so%20this%20type%20of%20error%20is%20common%20with%20strict%20or%20pre-release%20dependency%20pins%20%5B%28reference%29%5D%28https%3A//github.com/langgenius/dify-official-plugins/issues/2414%29.%0A%0AHere%20are%20your%20best%20workarounds%3A%0A%0A1.%20%2A%2AEdit%20the%20plugin%27s%20dependency%20spec%2A%2A%3A%20If%20you%20can%2C%20unpack%20the%20%60.difypkg%60%2C%20edit%20%60requirements.txt%60%20or%20%60pyproject.toml%60%20to%20use%20a%20gevent%20version%20that%20is%20available%20for%20Python%203.12%20and%20does%20not%20require%20a%20pre-release%20marker%2C%20then%20repackage%20and%20import%20the%20plugin.%0A%0A2.%20%2A%2AManual%20wheel%20install%2A%2A%3A%20Download%20the%20correct%20gevent%20wheel%20for%20Python%203.12%20on%20another%20machine%2C%20copy%20it%20into%20the%20plugin_daemon%20container%2C%20and%20manually%20install%20it%20in%20the%20plugin%27s%20virtual%20environment%20using%20%60pip%20install%20/path/to/gevent.whl%60.%20This%20can%20help%20in%20offline%20or%20restricted%20environments%20%5B%28reference%29%5D%28https%3A//github.com/langgenius/dify/issues/25961%23issuecomment-3311248091%29.%0A%0A3.%20%2A%2ACustom%20Docker%20image%2A%2A%3A%20For%20fully%20offline%20or%20repeatable%20installs%2C%20build%20a%20custom%20Docker%20image%20for%20plugin_daemon%20with%20all%20required%20wheels%20pre-installed%20%5B%28reference%29%5D%28https%3A//github.com/langgenius/dify/issues/14746%29.%0A%0AIf%20you%20get%20stuck%20in%20a%20failed%20install%20state%2C%20clear%20plugin%20install%20tasks%20and%20plugin%20data%2C%20then%20restart%20the%20plugin_daemon%20before%20retrying%20%5B%28reference%29%5D%28https%3A//github.com/langgenius/dify-official-plugins/issues/1153%29.%0A%0AFor%20future%20plugins%2C%20avoid%20strict%20or%20pre-release%20dependency%20pins%20unless%20absolutely%20necessary%2C%20and%20always%20check%20wheel%20availability%20for%20your%20Python%20version.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify/issues/31046)
Author
Owner

@Jeffhop commented on GitHub (Jan 15, 2026):

Your plugin install failed because the gevent dependency requires a pre-release version (e.g., gevent>25.5.1,<25.6.dev0), but the installer did not enable pre-releases, and only wheels for Python 3.13 were found, not for your Python 3.12 environment. The Dify plugin system currently does not provide a way to pass the --prerelease=allow flag to the dependency installer without modifying the plugin daemon source code, so this type of error is common with strict or pre-release dependency pins (reference).

Here are your best workarounds:

  1. Edit the plugin's dependency spec: If you can, unpack the .difypkg, edit requirements.txt or pyproject.toml to use a gevent version that is available for Python 3.12 and does not require a pre-release marker, then repackage and import the plugin.
  2. Manual wheel install: Download the correct gevent wheel for Python 3.12 on another machine, copy it into the plugin_daemon container, and manually install it in the plugin's virtual environment using pip install /path/to/gevent.whl. This can help in offline or restricted environments (reference).
  3. Custom Docker image: For fully offline or repeatable installs, build a custom Docker image for plugin_daemon with all required wheels pre-installed (reference).

If you get stuck in a failed install state, clear plugin install tasks and plugin data, then restart the plugin_daemon before retrying (reference).

For future plugins, avoid strict or pre-release dependency pins unless absolutely necessary, and always check wheel availability for your Python version.

To reply, just mention @dosu.

How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Chat with Dosu Open in Cursor Join Discord Share on X

打开requirements是这个,修改什么呢--no-index --find-links=./wheels/
dify_plugin<0.6.0,>=0.5.0
openai~=2.3.0
xinference_client~=1.0.1

@Jeffhop commented on GitHub (Jan 15, 2026): > Your plugin install failed because the gevent dependency requires a pre-release version (e.g., `gevent>25.5.1,<25.6.dev0`), but the installer did not enable pre-releases, and only wheels for Python 3.13 were found, not for your Python 3.12 environment. The Dify plugin system currently does not provide a way to pass the `--prerelease=allow` flag to the dependency installer without modifying the plugin daemon source code, so this type of error is common with strict or pre-release dependency pins [(reference)](https://github.com/langgenius/dify-official-plugins/issues/2414). > > Here are your best workarounds: > > 1. **Edit the plugin's dependency spec**: If you can, unpack the `.difypkg`, edit `requirements.txt` or `pyproject.toml` to use a gevent version that is available for Python 3.12 and does not require a pre-release marker, then repackage and import the plugin. > 2. **Manual wheel install**: Download the correct gevent wheel for Python 3.12 on another machine, copy it into the plugin_daemon container, and manually install it in the plugin's virtual environment using `pip install /path/to/gevent.whl`. This can help in offline or restricted environments [(reference)](https://github.com/langgenius/dify/issues/25961#issuecomment-3311248091). > 3. **Custom Docker image**: For fully offline or repeatable installs, build a custom Docker image for plugin_daemon with all required wheels pre-installed [(reference)](https://github.com/langgenius/dify/issues/14746). > > If you get stuck in a failed install state, clear plugin install tasks and plugin data, then restart the plugin_daemon before retrying [(reference)](https://github.com/langgenius/dify-official-plugins/issues/1153). > > For future plugins, avoid strict or pre-release dependency pins unless absolutely necessary, and always check wheel availability for your Python version. > > _To reply, just mention [@dosu](https://go.dosu.dev/dosubot)._ > > How did I do? [Good](https://app.dosu.dev/response-feedback/0e672069-c5d7-47e3-895f-a844b79a53c6?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/0e672069-c5d7-47e3-895f-a844b79a53c6?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/0e672069-c5d7-47e3-895f-a844b79a53c6?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/0e672069-c5d7-47e3-895f-a844b79a53c6?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/0e672069-c5d7-47e3-895f-a844b79a53c6?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/0e672069-c5d7-47e3-895f-a844b79a53c6?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/0e672069-c5d7-47e3-895f-a844b79a53c6?feedback_type=other) > > [![Chat with Dosu](https://camo.githubusercontent.com/7c571478962a6b8a5d47cac74b6824c75e4f6731bba52377e6007f9150462923/68747470733a2f2f646f73752e6465762f646f73752d636861742d62616467652e737667)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github) [![Open in Cursor](https://camo.githubusercontent.com/bdf7dbded65ee585887f47e5fd6fa099ea0933088b4b03d02e83b4def50154d4/68747470733a2f2f646f73752e6465762f646f73752d696e2d637572736f722e737667)](https://cursor.com/link/prompt?text=Your%20plugin%20install%20failed%20because%20the%20gevent%20dependency%20requires%20a%20pre-release%20version%20%28e.g.%2C%20%60gevent%3E25.5.1%2C%3C25.6.dev0%60%29%2C%20but%20the%20installer%20did%20not%20enable%20pre-releases%2C%20and%20only%20wheels%20for%20Python%203.13%20were%20found%2C%20not%20for%20your%20Python%203.12%20environment.%20The%20Dify%20plugin%20system%20currently%20does%20not%20provide%20a%20way%20to%20pass%20the%20%60--prerelease%3Dallow%60%20flag%20to%20the%20dependency%20installer%20without%20modifying%20the%20plugin%20daemon%20source%20code%2C%20so%20this%20type%20of%20error%20is%20common%20with%20strict%20or%20pre-release%20dependency%20pins%20%5B%28reference%29%5D%28https%3A//github.com/langgenius/dify-official-plugins/issues/2414%29.%0A%0AHere%20are%20your%20best%20workarounds%3A%0A%0A1.%20%2A%2AEdit%20the%20plugin%27s%20dependency%20spec%2A%2A%3A%20If%20you%20can%2C%20unpack%20the%20%60.difypkg%60%2C%20edit%20%60requirements.txt%60%20or%20%60pyproject.toml%60%20to%20use%20a%20gevent%20version%20that%20is%20available%20for%20Python%203.12%20and%20does%20not%20require%20a%20pre-release%20marker%2C%20then%20repackage%20and%20import%20the%20plugin.%0A%0A2.%20%2A%2AManual%20wheel%20install%2A%2A%3A%20Download%20the%20correct%20gevent%20wheel%20for%20Python%203.12%20on%20another%20machine%2C%20copy%20it%20into%20the%20plugin_daemon%20container%2C%20and%20manually%20install%20it%20in%20the%20plugin%27s%20virtual%20environment%20using%20%60pip%20install%20/path/to/gevent.whl%60.%20This%20can%20help%20in%20offline%20or%20restricted%20environments%20%5B%28reference%29%5D%28https%3A//github.com/langgenius/dify/issues/25961%23issuecomment-3311248091%29.%0A%0A3.%20%2A%2ACustom%20Docker%20image%2A%2A%3A%20For%20fully%20offline%20or%20repeatable%20installs%2C%20build%20a%20custom%20Docker%20image%20for%20plugin_daemon%20with%20all%20required%20wheels%20pre-installed%20%5B%28reference%29%5D%28https%3A//github.com/langgenius/dify/issues/14746%29.%0A%0AIf%20you%20get%20stuck%20in%20a%20failed%20install%20state%2C%20clear%20plugin%20install%20tasks%20and%20plugin%20data%2C%20then%20restart%20the%20plugin_daemon%20before%20retrying%20%5B%28reference%29%5D%28https%3A//github.com/langgenius/dify-official-plugins/issues/1153%29.%0A%0AFor%20future%20plugins%2C%20avoid%20strict%20or%20pre-release%20dependency%20pins%20unless%20absolutely%20necessary%2C%20and%20always%20check%20wheel%20availability%20for%20your%20Python%20version.) [![Join Discord](https://camo.githubusercontent.com/7d2066700925db1e370d956834f9ea0e5bc92cecbe84963fbd2a363e45091b4e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6a6f696e2d3538363546323f6c6f676f3d646973636f7264266c6f676f436f6c6f723d7768697465266c6162656c3d)](https://go.dosu.dev/discord-bot) [![Share on X](https://camo.githubusercontent.com/a8bd7f3fcf3f5e3bd124eee9ae50ae2ac17b40971726665ac2121d48f9aee155/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f582d73686172652d626c61636b)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify/issues/31046) 打开requirements是这个,修改什么呢--no-index --find-links=./wheels/ dify_plugin<0.6.0,>=0.5.0 openai~=2.3.0 xinference_client~=1.0.1
Author
Owner

@dosubot[bot] commented on GitHub (Jan 15, 2026):

To fix the install error, add this line to your requirements.txt:

gevent==25.9.1

This pins gevent to a stable version compatible with Python 3.12 and avoids the pre-release/wheel issue. Make sure you have a matching gevent wheel for Python 3.12 (cp312) in your wheels/ directory, since you are using --no-index --find-links=./wheels/. If you don’t have it, you can download the correct wheel from PyPI on another machine and place it in that directory.

After updating requirements.txt, repackage your plugin if needed, clear any failed install state, and retry the import. This approach is used in other Dify plugins to resolve similar dependency problems and is aligned with the main Dify project’s current gevent version reference example.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Chat with Dosu Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Jan 15, 2026): <!-- Answer --> To fix the install error, add this line to your requirements.txt: ``` gevent==25.9.1 ``` This pins gevent to a stable version compatible with Python 3.12 and avoids the pre-release/wheel issue. Make sure you have a matching gevent wheel for Python 3.12 (cp312) in your wheels/ directory, since you are using `--no-index --find-links=./wheels/`. If you don’t have it, you can download the correct wheel from PyPI on another machine and place it in that directory. After updating requirements.txt, repackage your plugin if needed, clear any failed install state, and retry the import. This approach is used in other Dify plugins to resolve similar dependency problems and is aligned with the main Dify project’s current gevent version [reference](https://github.com/langgenius/dify/pull/26026) [example](https://github.com/langgenius/dify-official-plugins/pull/1689). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/c1541246-7cbb-45cd-bd4f-eda4aeaab9cc?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/c1541246-7cbb-45cd-bd4f-eda4aeaab9cc?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/c1541246-7cbb-45cd-bd4f-eda4aeaab9cc?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/c1541246-7cbb-45cd-bd4f-eda4aeaab9cc?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c1541246-7cbb-45cd-bd4f-eda4aeaab9cc?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/c1541246-7cbb-45cd-bd4f-eda4aeaab9cc?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/c1541246-7cbb-45cd-bd4f-eda4aeaab9cc?feedback_type=other)</sup> [![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&nbsp;[![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=To%20fix%20the%20install%20error%2C%20add%20this%20line%20to%20your%20requirements.txt%3A%0A%0A%60%60%60%0Agevent%3D%3D25.9.1%0A%60%60%60%0A%0AThis%20pins%20gevent%20to%20a%20stable%20version%20compatible%20with%20Python%203.12%20and%20avoids%20the%20pre-release/wheel%20issue.%20Make%20sure%20you%20have%20a%20matching%20gevent%20wheel%20for%20Python%203.12%20%28cp312%29%20in%20your%20wheels/%20directory%2C%20since%20you%20are%20using%20%60--no-index%20--find-links%3D./wheels/%60.%20If%20you%20don%E2%80%99t%20have%20it%2C%20you%20can%20download%20the%20correct%20wheel%20from%20PyPI%20on%20another%20machine%20and%20place%20it%20in%20that%20directory.%0A%0AAfter%20updating%20requirements.txt%2C%20repackage%20your%20plugin%20if%20needed%2C%20clear%20any%20failed%20install%20state%2C%20and%20retry%20the%20import.%20This%20approach%20is%20used%20in%20other%20Dify%20plugins%20to%20resolve%20similar%20dependency%20problems%20and%20is%20aligned%20with%20the%20main%20Dify%20project%E2%80%99s%20current%20gevent%20version%20%5Breference%5D%28https%3A//github.com/langgenius/dify/pull/26026%29%20%5Bexample%5D%28https%3A//github.com/langgenius/dify-official-plugins/pull/1689%29.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify/issues/31046)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#21667