系統(tǒng):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
執(zhí)行指令python setup.py build ,
python setup.py test,
python setup.py install
當(dāng)執(zhí)行到python setup.py test 出錯,顯示:can' not find google/protobuf/internal/test_bad_identifiers.proto
已經(jīng)蒙了.....
缺少Protobuf。 windows我不清楚,*uix直接config,make 、make install就行了。