开发者社区 > ModelScope模型即服务 > 正文

modelscope的版本是1.16 报下面的错,是什么原因?

"执行
import modelscope.msdatasets
这行代码,modelscope的版本是1.16
报下面的错
File ""/home/ai/.local/lib/python3.12/site-packages/modelscope/msdatasets/init.py"", line 2, in
from .ms_dataset import MsDataset
File ""/home/ai/.local/lib/python3.12/site-packages/modelscope/msdatasets/ms_dataset.py"", line 16, in
from modelscope.msdatasets.data_loader.data_loader_manager import (
File ""/home/ai/.local/lib/python3.12/site-packages/modelscope/msdatasets/data_loader/data_loader_manager.py"", line 12, in
from modelscope.msdatasets.data_loader.data_loader import OssDownloader
File ""/home/ai/.local/lib/python3.12/site-packages/modelscope/msdatasets/data_loader/data_loader.py"", line 15, in
from modelscope.msdatasets.data_files.data_files_manager import \
File ""/home/ai/.local/lib/python3.12/site-packages/modelscope/msdatasets/data_files/data_files_manager.py"", line 11, in
from modelscope.msdatasets.download.dataset_builder import (
File ""/home/ai/.local/lib/python3.12/site-packages/modelscope/msdatasets/download/dataset_builder.py"", line 24, in
from modelscope.msdatasets.download.download_manager import \
File ""/home/ai/.local/lib/python3.12/site-packages/modelscope/msdatasets/download/download_manager.py"", line 9, in
from modelscope.msdatasets.utils.oss_utils import OssUtilities
File ""/home/ai/.local/lib/python3.12/site-packages/modelscope/msdatasets/utils/oss_utils.py"", line 7, in
import oss2
File ""/home/ai/.local/lib/python3.12/site-packages/oss2/init.py"", line 3, in
from . import models, exceptions, defaults
File ""/home/ai/.local/lib/python3.12/site-packages/oss2/models.py"", line 9, in
from . import utils
File ""/home/ai/.local/lib/python3.12/site-packages/oss2/utils.py"", line 33, in
from Crypto import Random
File ""/home/ai/.local/lib/python3.12/site-packages/Crypto/Random/init.py"", line 28, in
from Crypto.Random import OSRNG
File ""/home/ai/.local/lib/python3.12/site-packages/Crypto/Random/OSRNG/init.py"", line 32, in
from Crypto.Random.OSRNG.posix import new
File ""/home/ai/.local/lib/python3.12/site-packages/Crypto/Random/OSRNG/posix.py"", line 66
except IOError, e:
^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized
是什么原因?"

展开
收起
小小爱吃香菜 2024-07-30 17:38:35 38 0
1 条回答
写回答
取消 提交回答
  • 您搭个python3.10的环境试试。 此回答整理自钉群“魔搭ModelScope开发者联盟群 ①”

    2024-07-30 19:00:07
    赞同 1 展开评论 打赏

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

相关电子书

更多
视觉AI能力的开放现状及ModelScope实战 立即下载
ModelScope助力语音AI模型创新与应用 立即下载
低代码开发师(初级)实战教程 立即下载