TypeError: Descriptors cannot not be created directly解决
文章目录
- 问题
- 解决
问题
跑代码的时候遇到了这个问题:
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解决相关推荐
- 问题:TypeError: Descriptors cannot not be created directly.解决方法
运行代码时提示如下报错: 解决上面问题,直接在控制台中输入下面命令重新安装protobuf即可,如下: pip install 'protobuf~=3.19.0' 以上就是解决TypeError: ...
- 【TypeError: Descriptors cannot not be created directly. 】解决方法
报错信息: TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.pyfile, y ...
- 已解决TypeError: Descriptors cannot not be created directly.
已解决TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file, you ...
- 解决TypeError: Descriptors cannot not be created directly报错!
完整报错如下: TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file ...
- python TypeError: Descriptors cannot not be created directly错误解决
运行python脚本时出现错误 TypeError: Descriptors cannot not be created directly. If this call came from a _pb2 ...
- 解决:TypeError: Descriptors cannot not be created directly
我使用pip命令下载安装paddlepaddle库,具体命令如下所示,采用清华镜像源,这样下载速度更快! pip install -i https://pypi.tuna.tsinghua.edu.c ...
- TypeError: Descriptors cannot not be created directly.
python 依赖 protobuf 奇怪报错 TypeError: Descriptors cannot not be created directly. 在使用 paddlex 时引入一些调用了 ...
- 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 ...
- 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/ 本文 ...
最新文章
- 清华大学大数据能力提升项目开始报名啦 !(2019年秋季)
- [摘]Spring 3之MVC Security简单整合开发
- DCMTK:OFvariant的单元测试
- 神奇的sstream头文件(整型与字符串自由转换)
- VMware Fusion虚拟机的低分辨率问题(亲测有效)
- 浅析laravel门面原理与实现
- 开启Windows或者Mac OSX 本地服务器 (非安装第三方服务器软件)
- 交换机 链路层无法udp通讯_一文读懂计算机底层网络原理,包括TCP、UDP、header,什么是包、帧、段等关键问题...
- 【ML】理解偏差和方差,过拟合和欠拟合
- FR cpt报表的自动滚屏/滚动编辑
- crm系统需要的服务器,灵当CRM管理系统运行环境-CRM服务器配置
- Android N DisplayManager服务解析(二)
- 网页无法与服务器建立安全连接失败,“发生了SSL错误,无法与服务器建立安全连接。”...
- 深入理解 OpenStack Neutron:VXLAN
- HTML中如何自动切换页面背景图片
- 通过ipmitool监控机房内服务器温度
- Norgen痰液液化缓冲液解决方案
- 解决Connections could not be acquired from the underlying database!
- 单机版五子棋java功能_JAVA单机版五子棋怎么写
- 推荐系统_(一)算法详解