1. 程式人生 > >ObjectDetecionAPI TypeError: __new__() got an unexpected keyword argument 'serialized_options'

ObjectDetecionAPI TypeError: __new__() got an unexpected keyword argument 'serialized_options'

轉載地址:https://stackoverflow.com/questions/50338968/objectdetecionapi-typeerror-new-got-an-unexpected-keyword-argument-seria

我的問題的解決方式是:在終端上的 protoc 版本 與pycharm 中用conda 安裝的protobuf版本不一樣。然後在終端上進行proto檔案編譯,在pycharm上執行相關指令碼,出現以上錯誤。在pycharm中調整protobuf的版本後錯誤消失。