首页  >  问答  >  正文

mysql - python,protobuf安装

系统:windows7 64
在用pip3 install mysql-connector时,显示protobuf缺失,
然后方面搜索后,从google上下载protobuf-2.5.0.zip和protoc-2.5.0-win32.zip,

步骤如下:
把protoc-2.5.0-win32.zip里的protoc.exe放到protobuf-2.5.0src下,切换到protobuf-2.5.0Python
执行指令 python setup.py build,

             python setup.py test, 
             python setup.py install

当执行到python setup.py test 出错,显示:can' not find google/protobuf/internal/test_bad_identifiers.proto
已经蒙了.....

phpcn_u1582phpcn_u15822710 天前707

全部回复(1)我来回复

  • PHP中文网

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

    缺少Protobuf。windows我不清楚,*uix直接config,make 、make install就行了。

    回复
    0
  • 取消回复