How to introduce python packages into code in dify #12531

Closed
opened 2026-02-21 19:07:50 -05:00 by yindo · 4 comments
Owner

Originally created by @mxyd on GitHub (Apr 3, 2025).

Self Checks

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

Provide a description of requested docs changes

How to introduce python packages into code in dify
dify 里面如何在代码里面引入 python的 包

Originally created by @mxyd on GitHub (Apr 3, 2025). ### Self Checks - [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 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. ### Provide a description of requested docs changes How to introduce python packages into code in dify dify 里面如何在代码里面引入 python的 包
yindo added the 🙋‍♂️ question label 2026-02-21 19:07:50 -05:00
yindo closed this issue 2026-02-21 19:07:51 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Apr 3, 2025):

To introduce Python packages into code in Dify, you can modify the file located at docker/volumes/sandbox/dependencies/python-requirements.txt and add your required packages to this requirements file [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Apr 3, 2025): <!-- Answer --> To introduce Python packages into code in Dify, you can modify the file located at `docker/volumes/sandbox/dependencies/python-requirements.txt` and add your required packages to this requirements file <sup>[[1]](https://github.com/langgenius/dify/issues/12145)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/c41bfc4a-aeae-4375-bfca-18f1b32e8756?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/c41bfc4a-aeae-4375-bfca-18f1b32e8756?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/c41bfc4a-aeae-4375-bfca-18f1b32e8756?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/c41bfc4a-aeae-4375-bfca-18f1b32e8756?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c41bfc4a-aeae-4375-bfca-18f1b32e8756?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/c41bfc4a-aeae-4375-bfca-18f1b32e8756?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/c41bfc4a-aeae-4375-bfca-18f1b32e8756?feedback_type=other)</sup>
Author
Owner

@mxyd commented on GitHub (Apr 3, 2025):

@dosu: Please tell me how I should operate it

@mxyd commented on GitHub (Apr 3, 2025): @dosu: Please tell me how I should operate it
Author
Owner

@dosubot[bot] commented on GitHub (Apr 3, 2025):

To introduce Python packages into Dify, modify the docker/volumes/sandbox/dependencies/python-requirements.txt file by adding the packages you need. After updating this file, you'll need to rebuild the Docker container to apply the changes.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Apr 3, 2025): <!-- Answer --> To introduce Python packages into Dify, modify the `docker/volumes/sandbox/dependencies/python-requirements.txt` file by adding the packages you need. After updating this file, you'll need to rebuild the Docker container to apply the changes. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/5bd59469-dac0-431a-8b9a-29d054c07f70?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/5bd59469-dac0-431a-8b9a-29d054c07f70?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/5bd59469-dac0-431a-8b9a-29d054c07f70?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/5bd59469-dac0-431a-8b9a-29d054c07f70?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/5bd59469-dac0-431a-8b9a-29d054c07f70?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/5bd59469-dac0-431a-8b9a-29d054c07f70?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/5bd59469-dac0-431a-8b9a-29d054c07f70?feedback_type=other)</sup>
Author
Owner

@mxyd commented on GitHub (Apr 3, 2025):

@dosu:Please tell me how to change it.

@mxyd commented on GitHub (Apr 3, 2025): @dosu:Please tell me how to change it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12531