运行代码时提示如下报错:
解决上面问题,直接在控制台中输入下面命令重新安装protobuf即可,如下:
pip install 'protobuf~=3.19.0'
以上就是解决TypeError: Descriptors cannot not be created directly.的方法,希望能帮助到有同样问题的你,谢谢!
运行代码时提示如下报错:
解决上面问题,直接在控制台中输入下面命令重新安装protobuf即可,如下:
pip install 'protobuf~=3.19.0'
以上就是解决TypeError: Descriptors cannot not be created directly.的方法,希望能帮助到有同样问题的你,谢谢!