Home  >  Q&A  >  body text

mysql-python, protobuf installation

System: windows7 64
When using pip3 install mysql-connector, it shows that protobuf is missing.
Then after searching, download protobuf-2.5.0.zip and protoc-2.5.0-win32 from google .zip,

The steps are as follows:
Put the protoc.exe in protoc-2.5.0-win32.zip under protobuf-2.5.0src and switch to protobuf-2.5.0Python
Execute the command python setup.py build ,

             python setup.py test, 
             python setup.py install

When executing python setup.py test, an error occurs, showing: can' not find google/protobuf/internal/test_bad_identifiers.proto
Already confused...

phpcn_u1582phpcn_u15822710 days ago708

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-05-18 10:59:10

    Protobuf is missing. I don't know about windows, *uix can just configure directly, make or make install.

    reply
    0
  • Cancelreply