from google.protobuf.internal import enum_type_wrapper ImportError: No module named google.protobuf.internal 确实是两种Python环境,按照上面的安装的确实好用 另外对于AttributeError: 'NoneType' object has no attribute 'astype' 是因为 要输入图片格式不对