langgenius / dify-sandbox

A lightweight, fast, and secure code execution environment that supports multiple programming languages
https://docs.dify.ai/development/backend/sandbox
Apache License 2.0
434 stars 97 forks source link

if the module name written in python-requirements.txt is not the same as "import module_name" , what should i do? #36

Closed autel-tangyinghao closed 3 months ago

autel-tangyinghao commented 3 months ago
          if the module name written in  python-requirements.txt is not the same as "import module_name" , what should i do?

for example: aliyun-log-python-sdk==0.9.2 in python-requirements.txt . need to "import aliyun.log" image

Originally posted by @LONGZaixiang in https://github.com/langgenius/dify/issues/4612#issuecomment-2268228195

luckylhb90 commented 3 months ago
image

If you are running a service through docker, you can put the python packages you need into this file.

autel-tangyinghao commented 3 months ago

the module name written in python-requirements.txt... for example: aliyun-log-python-sdk==0.9.2 in python-requirements.txt . need to "import aliyun.log"

Yeuoly commented 3 months ago

pls change to the latest version, select dependencies manually is no longer required.