2014年4月18日 星期五

[python]ImportError: No module named google.protobuf


$ python test.py
Traceback (most recent call last):
  File "test.py", line 2, in <module>
    import addressbook_pb2
  File "-2.5.0/examples/addressbook_pb2.py", line 4, in <module>
    from google.protobuf import descriptor as _descriptor
ImportError: No module named google.protobuf

sol:

easy_install protobuf

沒有留言:

張貼留言