Can we have a requirements.txt to install some basic Python libraries? #183

Closed
opened 2026-02-16 00:20:22 -05:00 by yindo · 2 comments
Owner

Originally created by @AaronMKk on GitHub (Aug 28, 2025).

Self Checks

To make sure we get to you in time, please check the following :)

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • "Please do not modify this template :) and fill in all the required fields."

Is your feature request related to a problem? Please describe.
Can we have an optional requirements.txt file with some basic Python libraries?
This would speed up plugin installation since we wouldn’t need to reinstall common packages repeatedly in the plugin enviroment init process(e.g., openai, numpy).

Originally created by @AaronMKk on GitHub (Aug 28, 2025). **Self Checks** To make sure we get to you in time, please check the following :) - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify-plugin-daemon/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] "Please do not modify this template :) and fill in all the required fields." **Is your feature request related to a problem? Please describe.** Can we have an optional requirements.txt file with some basic Python libraries? This would speed up plugin installation since we wouldn’t need to reinstall common packages repeatedly in the plugin enviroment init process(e.g., openai, numpy).
yindo closed this issue 2026-02-16 00:20:22 -05:00
Author
Owner

@Yeuoly commented on GitHub (Dec 12, 2025):

Actually, even though we embed some libraries inside, the dependencies version relied by different plugins are still different, the daemon has no idea which version to embed.

What's more, we've introduced uv to manage the library, the uv it self will handle the cache and avoid repeatedly install a library.

Maybe you can provide a list that which libraries you want to embed and let's me know if it's possible to install them during building the image.

@Yeuoly commented on GitHub (Dec 12, 2025): Actually, even though we embed some libraries inside, the dependencies version relied by different plugins are still different, the daemon has no idea which version to embed. What's more, we've introduced `uv` to manage the library, the `uv` it self will handle the cache and avoid repeatedly install a library. Maybe you can provide a list that which libraries you want to embed and let's me know if it's possible to install them during building the image.
Author
Owner

@fatelei commented on GitHub (Jan 12, 2026):

requirement.txt is define in https://github.com/langgenius/dify-official-plugins, every plugin has it own requrirement.txt

@fatelei commented on GitHub (Jan 12, 2026): requirement.txt is define in https://github.com/langgenius/dify-official-plugins, every plugin has it own requrirement.txt
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#183