系统: windows7 64bit,python 3.5
在安装 python mysql 驱动时,尝试用 pip3 install mysql-connector 安装时,显示 protobuf 缺失。 从 csdn 上看到一个博主的方法:把 protoc-2.5.0-win32.zip 里的 protoc.exe 放到 protobuf-2.5.0src 下,切换到 protobuf-2.5.0\Python
执行指令 python setup.py build
python setup.py test
python setup.py test
我从新从 google 下了源码,执行 python setup.py test 时,显示''' can't find required file:google/protobuf/internal/test_bad_identifiers.proto '''
查看了 setup.py 的代码中有是有 generate_proto("google/protobuf/internal/test_bad_identifiers.proto")
求各位大大解救