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

请问我安装SWIFT成功了,为什么ModelScope执行swift web-ui 报错?

请问我安装SWIFT成功了,用源代码和pip都成功了,为什么ModelScope执行swift web-ui 报错? File "D:\ProgramData\Anaconda3\envs\python3.8\lib\site-packages\transformers\utils\import_utils.py", line 1366, in _get_module
raise RuntimeError(
RuntimeError: Failed to import transformers.modeling_utils because of the following error (look up to see its traceback):
Failed to import transformers.generation.utils because of the following error (look up to see its traceback):
Descriptors cannot be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

帮我分析下原因 参考图片:955ef6ba01390a5b11db31b5e6f721be.png 0f3f051706b88fa7f7ae39ccd9e62946.png 65ad3eb6f4338674a09786684d61f4f9.png 是这个protobuf版本的问题吗?

展开
收起
陈幕白 2024-02-26 20:34:19 136 0
1 条回答
写回答
取消 提交回答

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

相关电子书

更多
OpenStack Swift 海量小文件优化之路 立即下载
From Java/Android to Swift iOS 立即下载
Swift在Airbnb的应用实践 立即下载