yum install -y python3 #安装Python
更换PIP源
mkdir -p ~/.pip
vim pip.conf
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = https://pypi.tuna.tsinghua.edu.cn
pip3 install --upgrade pip #更新
pip3 install mycli #安装mycli
mycli -uroot -p'Password' #启动mycll
此时可能会提示缺少“ModuleNotFoundError: No module named 'dataclasses'”模块的错误
pip3 install dataclasses #安装dataclasses
mycli -uroot -p'Password' #再次启动