dify 安装插件失败dify failed to launch plugin: failed to install dependencies: failed to install depend...

PIP设置了国内镜像也没用,因为插件容器时uv进行包安装的。错误内容:

dify failed to launch plugin: failed to install dependencies: failed to install dependencies: signal: killed, output: DEBUG Found workspace root: /app/storage/cwd/langgenius/openai-0.4.2@21195ee1321849e0a7d4b3f6b2fd8c2be23ea6c7182e1b444ecc4c1711b52468 DEBUG Adding root workspace member: /app/storage/cwd/langgenius/openai-0.4.2@21195ee1321849e0a7d4b3f6b2fd8c2be23ea6c7182e1b444ecc4c1711b52468 DEBUG Skipping pyproject.toml in `/app/storage/cwd/langgenius/openai-0.4.2@21195ee1321849e0a7d4b3f6b2fd8c2be23ea6c718....6-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl, retrying: error sending request for url (https://files.pythonhosted.org/packages/99/60/14115e6364fa676c5397c2ad3004e527e9aa487abf5d0706ec81bbd08529/numpy-2.4.6-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl) Caused by: client error (Connect) Caused by: tcp connect error Caused by: Network is unreachable (os error 101) Downloading numpy (15.9MiB) init process exited due to no activity for 320 seconds failed to init environment

  • 1、.env 设置国内镜像
PIP_MIRROR_URL=https://mirrors.aliyun.com/pypi/simple/
image.png
  • 2、配置插件容器的uv国内镜像源,environment下面设置:
      UV_INDEX_URL: https://mirrors.aliyun.com/pypi/simple/
      PLUGIN_IGNORE_UV_LOCK: true
image.png
  • 3、重启容器
 docker compose down
 docker compose up -d
  • 重新安装插件即可
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容