"在windows下安装完成modelscope后,运行ModelScope的例子报错,请问如何解决?
(modelscope) C:\Users\zhang>python -c ""from modelscope.pipelines import pipeline;print(pipeline('word-segmentation')('今天天气不错,适合 出去游玩'))""
2024-04-24 11:17:26,334 - modelscope - INFO - PyTorch version 1.11.0+cpu Found.
2024-04-24 11:17:26,339 - modelscope - INFO - TensorFlow version 2.13.0 Found.
2024-04-24 11:17:26,339 - modelscope - INFO - Loading ast index from C:\Users\zhang.cache\modelscope\ast_indexer
2024-04-24 11:17:26,514 - modelscope - INFO - Loading done! Current index file version is 1.13.3, with md5 e0187410f65cdb4836ed1947b8dce52b and a total number of 972 components indexed
Traceback (most recent call last):
File """", line 1, in
File ""C:\anaconda3\envs\modelscope\lib\site-packages\modelscope\pipelines__init.py"", line 4, in
from .base import Pipeline
File ""C:\anaconda3\envs\modelscope\lib\site-packages\modelscope\pipelines\base.py"", line 16, in
from modelscope.msdatasets import MsDataset
File ""C:\anaconda3\envs\modelscope\lib\site-packages\modelscope\msdatasets\init__.py"", line 2, in
from .ms_dataset import MsDataset
File ""C:\anaconda3\envs\modelscope\lib\site-packages\modelscope\msdatasets\ms_dataset.py"", line 24, in
from modelscope.msdatasets.utils.hf_datasets_util import \
File ""C:\anaconda3\envs\modelscope\lib\site-packages\modelscope\msdatasets\utils\hf_datasets_util.py"", line 24, in
from datasets.exceptions import DataFilesNotFoundError, DatasetNotFoundError
ImportError: cannot import name 'DataFilesNotFoundError' from 'datasets.exceptions' (C:\anaconda3\envs\modelscope\lib\site-packages\datasets\exceptions.py)"
ModelScope旨在打造下一代开源的模型即服务共享平台,为泛AI开发者提供灵活、易用、低成本的一站式模型服务产品,让模型应用更简单!欢迎加入技术交流群:微信公众号:魔搭ModelScope社区,钉钉群号:44837352