mysqldiff No module named utilities.common.tools
Posted chenminklutz
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysqldiff No module named utilities.common.tools相关的知识,希望对你有一定的参考价值。
Traceback (most recent call last): File "/bin/mysqldiff", line 28, in <module> from mysql.utilities.common.tools import check_python_version ImportError: No module named utilities.common.tools
直接用yum安装的mysqldiff会提示No module named utilities.common.tools
解决方法:
yum remove mysql-connector-python -y
#centos 7 rpm -Uvh http://repo.mysql.com/yum/mysql-connectors-community/el/7/x86_64/mysql-connector-python-2.1.8-1.el7.x86_64.rpm
#centos 6
rpm -Uvh http://repo.mysql.com/yum/mysql-connectors-community/el/6/x86_64/mysql-connector-python-2.1.8-1.el6.x86_64.rpm
yum install mysql-utilities
以上是关于mysqldiff No module named utilities.common.tools的主要内容,如果未能解决你的问题,请参考以下文章
Python 报错:之“No module named bs4...
笨办法学python:No module named NAME
pycharm出现no module named cv2怎么解决
No module named ‘neo4j.addressing’ & ModuleNotFoundError: No module named ‘pytz‘
python 3.x报错:No module named 'cookielib'或No module named 'urllib2'
ImportError: No module named cv2 或 ModuleNotFoundError: No module named 'cv2'