无法导入modelscope,已经pip install成功

File "/Users/lruan/workspace/llm/modelscope.py", line 2, in
from modelscope.hub.snapshot_download import snapshot_download
ModuleNotFoundError: No module named 'modelscope.hub'; 'modelscope' is not a package


modelscope安装信息

pip show modelscope
Name: modelscope
Version: 1.15.0
Summary: ModelScope: bring the notion of Model-as-a-Service to life.
Home-page: https://github.com/modelscope/modelscope
Author: ModelScope team
Author-email: contact@modelscope.cn
License: Apache License 2.0
Location: /usr/local/lib/python3.9/site-packages
Requires: addict, attrs, datasets, einops, filelock, gast, huggingface-hub, numpy, oss2, pandas, Pillow, pyarrow, python-dateutil, pyyaml, requests, scipy, setuptools, simplejson, sortedcontainers, tqdm, urllib3, yapf
Required-by:

展开
收起
游客p7kbbp4i4mxiu 2024-06-06 12:05:46 665 分享 版权
0 条回答
写回答
取消 提交回答

ModelScope旨在打造下一代开源的模型即服务共享平台,为泛AI开发者提供灵活、易用、低成本的一站式模型服务产品,让模型应用更简单!欢迎加入技术交流群:微信公众号:魔搭ModelScope社区,钉钉群号:44837352

还有其他疑问?
咨询AI助理