按照modelscope镜像使用教程启动容器,使用conda为ModelScope library创建对应的Python环境,然后容器内安装并启动ms-swift,出现一个报错:Did not detect the .env file at /root/anaconda3/envs/modelscope/lib/python3.10/site-packages/.env, failed to load. #2473
ms-swift启动过程中报错信息如下,但宿主机可以正常访问到swift服务:
root - ERROR - Did not detect the .env file at /root/anaconda3/envs/modelscope/lib/python3.10/site-packages/.env, failed to load.
docker run -p 8000:8000 -it -d --name ms modelscope-registry.cn-hangzhou.cr.aliyuncs.com/modelscope-repo/modelscope:ubuntu22.04-py310-torch2.3.1-1.20.0 /bin/bash
docker exec -it ms bash
ms-swift启动过程中报错信息如下,但宿主机可以正常访问到swift服务: root - ERROR - Did not detect the .env file at /root/anaconda3/envs/modelscope/lib/python3.10/site-packages/.env, failed to load.