宝塔环境7.6,有py2和py3
使用pymysql时报错
No module named ‘pymysql.util
解决办法:
卸载 pymysql 1.0.2
安装 pip install pymysql==0.9.3
安装时,两个版本会警告,可忽略
WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead