ImportError: No module named connector.conversion

三世轮回 提交于 2019-12-05 03:28:11
user1855221

From Can't run MySql Utilities:

MYSQL Utilities assumes that the MySQL Connector for Python has been installed. If you install it (http://dev.mysql.com/downloads/connector/python/), MySQL Utilities should run OK.

I tried solving this for hours and ended up using the mysqldb library instead of mysql-connector for python. (Using Mac osSierra 10.12) It was enough for my purposes though I can't ensure that it would be enough for everybodies purposes.

Frederic

I had the same problem. Searching on Internet I met the solution. We have to install the library given by Python:

sudo apt-get install python3-mysql.connector

Or, if Python 2:

sudo apt-get install python-mysql.connector

Thanks to: https://askubuntu.com/questions/1014947/mysql-connector-python-importerror-no-module-named-mysql

MySQL connector is required...but it seems this version is bugging out and not installing on Mac OSmysql-connector-python-8.0.15-macos10.14.dmg.

If someone is having the same problem, you can install pymysql instead, as this post suggests.

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