Loading

python升级后无法安装mysql-utilities-1.6.5

1.执行python安装命令如下报错

[root@oracle11g mysql-utilities-1.6.5]# python setup.py install
Traceback (most recent call last):
  File "setup.py", line 21, in <module>
    import ConfigParser
ModuleNotFoundError: No module named 'ConfigParser'

原因:mysql-utilities-1.6.5是基于python2版本来实现的,升级到3.6之后,无法进行安装

 

2.通过python2.6进行安装

[root@oracle11g mysql-utilities-1.6.5]# python
python      python2     python2.6   python_old  

安装

python2.6 setup.py build
python2.6 setup.py install 

  

 

posted @ 2021-08-18 14:10  李行行  阅读(153)  评论(0编辑  收藏  举报