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

无法使用pycryptodome python库 #61

Closed NetN1nj4 closed 2 months ago

NetN1nj4 commented 2 months ago

已经安装该库 image 实际调用也没问题 image

工作流中使用代码执行就会报错说找不到该模块 image

yuweimian-shy commented 2 months ago

需要重新打sandbox的镜像,在打镜像的同时安装第三方库

Yeuoly commented 2 months ago

You need to rebuild the image, or using this interface https://github.com/langgenius/dify-sandbox/blob/main/internal/controller/run.go#L45