Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

按照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

Open
Fanxhion opened this issue Nov 19, 2024 · 3 comments

Comments

@Fanxhion
Copy link

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.

@slin000111
Copy link
Collaborator

用了文档中哪个镜像呢?https://modelscope.cn/docs/%E7%8E%AF%E5%A2%83%E5%AE%89%E8%A3%85

@Fanxhion
Copy link
Author

Fanxhion commented Nov 21, 2024 via email

@slin000111
Copy link
Collaborator

没有复现这个报错。
启动容器:

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

容器中运行如下命令:

swift web-ui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants