文章目录

  • 问题
  • 解决

问题

跑代码的时候遇到了这个问题:

TypeError: Descriptors cannot not 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

解决

按照提示的第一个,降级protobuf即可:

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 came from a _pb2.pyfile, y ...

  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. 清华大学大数据能力提升项目开始报名啦 !(2019年秋季)
  2. [摘]Spring 3之MVC Security简单整合开发
  3. DCMTK:OFvariant的单元测试
  4. 神奇的sstream头文件(整型与字符串自由转换)
  5. VMware Fusion虚拟机的低分辨率问题(亲测有效)
  6. 浅析laravel门面原理与实现
  7. 开启Windows或者Mac OSX 本地服务器 (非安装第三方服务器软件)
  8. 交换机 链路层无法udp通讯_一文读懂计算机底层网络原理,包括TCP、UDP、header,什么是包、帧、段等关键问题...
  9. 【ML】理解偏差和方差,过拟合和欠拟合
  10. FR cpt报表的自动滚屏/滚动编辑
  11. crm系统需要的服务器,灵当CRM管理系统运行环境-CRM服务器配置
  12. Android N DisplayManager服务解析(二)
  13. 网页无法与服务器建立安全连接失败,“发生了SSL错误,无法与服务器建立安全连接。”...
  14. 深入理解 OpenStack Neutron:VXLAN
  15. HTML中如何自动切换页面背景图片
  16. 通过ipmitool监控机房内服务器温度
  17. Norgen痰液液化缓冲液解决方案
  18. 解决Connections could not be acquired from the underlying database!
  19. 单机版五子棋java功能_JAVA单机版五子棋怎么写
  20. 推荐系统_(一)算法详解

热门文章

  1. 网易云课堂Web安全工程师课程分享——第一章 Web介绍
  2. 大数据Hive 面试以及知识点
  3. 精选——Hive十道面试题(下)
  4. 有哪些不错的家装风格?极家整装怎么样
  5. Milvus 群星闪耀时|又一个小目标达成 :社区正式突破 15,000 星!
  6. 在 LaTeX 中定义变量
  7. 利用js制作动态小时钟
  8. nano spi flash linux构建指南
  9. 分享:制作属于自己的O'REILLY“动物书”封面
  10. VB问题——ByRef参数类型不符