No module named "apt_pkg"的解决方法
cd /usr/lib/python3/dist-packages/
sudo cp apt_pkg.cpython-36m-x86_64-linux-gnu.so apt_pkg.cpython-37m-x86_64-linux-gnu.so
安装PyMySQL
pip3
install
pymysql
No module named "apt_pkg"的解决方法
cd /usr/lib/python3/dist-packages/
sudo cp apt_pkg.cpython-36m-x86_64-linux-gnu.so apt_pkg.cpython-37m-x86_64-linux-gnu.so
安装PyMySQL
pip3
install
pymysql