报错信息:

TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.pyfile, 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).

解决方法:

pip install protobuf==3.19.0

【TypeError: Descriptors cannot not be created directly. 】解决方法相关推荐

  1. 问题:TypeError: Descriptors cannot not be created directly.解决方法

    运行代码时提示如下报错: 解决上面问题,直接在控制台中输入下面命令重新安装protobuf即可,如下: pip install 'protobuf~=3.19.0' 以上就是解决TypeError: ...

  2. TypeError: Descriptors cannot not be created directly解决

    文章目录 问题 解决 问题 跑代码的时候遇到了这个问题: TypeError: Descriptors cannot not be created directly. If this call cam ...

  3. 已解决TypeError: Descriptors cannot not be created directly.

    已解决TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file, you ...

  4. 解决TypeError: Descriptors cannot not be created directly报错!

    完整报错如下: TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file ...

  5. python TypeError: Descriptors cannot not be created directly错误解决

    运行python脚本时出现错误 TypeError: Descriptors cannot not be created directly. If this call came from a _pb2 ...

  6. 解决:TypeError: Descriptors cannot not be created directly

    我使用pip命令下载安装paddlepaddle库,具体命令如下所示,采用清华镜像源,这样下载速度更快! pip install -i https://pypi.tuna.tsinghua.edu.c ...

  7. TypeError: Descriptors cannot not be created directly.

    python 依赖 protobuf 奇怪报错 TypeError: Descriptors cannot not be created directly. 在使用 paddlex 时引入一些调用了 ...

  8. TensorFlow2.8.0报错TypeError: Descriptors cannot not be created directly.

    @创建于:2022.09.28 @修改于:2022.09.28 1.错误信息 Traceback (most recent call last):File "D:\PycharmProjec ...

  9. import keras时遇到的错误 TypeError: Descriptors cannot not be created directly. If this call came from a _

    问题描述 版本对应 keras 与 tensorflow 版本对应关系:https://master–floydhub-docs.netlify.app/guides/environments/ 本文 ...

最新文章

  1. 在列表前方插入一个数据_Python基础知识详解(三):数据结构篇
  2. 关于当前所用的MVP架构的所思所想
  3. 修改Linux内核的printk缓冲区(log缓冲区)大小
  4. 自增符号++(自减符号--)带来的部分影响
  5. C++中函数的默认参数
  6. 一篇带你了解函数指针
  7. python gevent教程_Python的gevent框架的入门教程
  8. VMware10出现VMware Workstation 不可恢复错误: (vmx)
  9. Web Service security UserNameToken 使用
  10. html里meta标签,HTML中的meta标签详解
  11. eclipse注释模板
  12. Ubuntu16.04安装最新版nodejs
  13. FL Studio剪辑菜单的使用方法
  14. word---自定义编号样式
  15. [LOCAL] 画画图(结论 + DP + 常数分析) | 错题本
  16. du命令参数-h/-s
  17. 如何理解工程测量中的各种误差
  18. Python 获取优惠券淘宝口令
  19. u8系统清理异常咋进服务器,用友u8怎么清除异常
  20. ubuntu磁盘分区方案

热门文章

  1. 从雨天塞车说DevOps,兼修订三步生活法
  2. 游戏编程模式 - 命令模式
  3. 读查理·芒格---《穷查理宝典》
  4. 简述 Spring Bean的生命周期
  5. 上面两点下面一个三角形_K线图中走出三角形收敛形态必有大波动?一招判断后期走势方向...
  6. @ConfigurationProperties(prefix = “xx.xx.xx“)
  7. html怎么在文字中加小方框,css之列表数据前加上小方框
  8. MQL5:zig-zag 指标
  9. python图书搜索与书籍封面下载
  10. 扇贝python编程课 百度云,扇贝编程python课程分享