“Unable to find Protobuf include directory” when I use “pip install mysql-connector”

自古美人都是妖i 提交于 2020-01-04 18:57:07

问题


I get this error when I try to load using pip install mysql-connector. I tried pip install Protobuf too but no solution.

# Python architecture: 64-bit # Python ARCH_64BIT: True Unable to find Protobuf include directory.


回答1:


I found this useful:

pip install mysql-connector==2.1.4 is obsolete. pip install mysql-connector-python is suggested.




回答2:


The official package name of MySQL Connector for Python is mysql-connector-python:

pip install mysql-connector-python

And mysql-connector is a fork package, and is stopped updating, so

pip install mysql-connector

will install this obsolete version.



来源:https://stackoverflow.com/questions/46215390/unable-to-find-protobuf-include-directory-when-i-use-pip-install-mysql-connec

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!