I have been trying to use protocol buffers in my Python program, but cannot get it to work. I'm running a Windows 8 machine and have tried Python 2.7.6 and Python 3.3.
I downloaded the binary protocol buffer compiler for Python and used it to generate myProto_pb2.py
from my myProto.proto
file, but when I get the following error when I run my Python program:
from the "import myProto_pb2" line, I get the following error when using Python 2.7.6 from protocol buffers version 2.5:
from google.protobuf import descriptor as _descriptor
ImportError: No module named google.protobuf
How can I correctly install and run protocol buffers from Python on Windows?