from caffe2.python import workspace
Traceback (most recent call last):
File “”, line 1, in
File “/home/reallocing/anaconda27/lib/python2.7/site-packages/caffe2/python/init.py”, line 2, in
from caffe2.proto import caffe2_pb2
File “/home/reallocing/anaconda27/lib/python2.7/site-packages/caffe2/proto/caffe2_pb2.py”, line 220, in
options=None, file=DESCRIPTOR),
TypeError: new() got an unexpected keyword argument ‘file’
安装protobuf进行解决:
conda install protobuf