$ pip install pymysql
Requirement already satisfied: PyMySQL in /usr/local/lib/python3.6/site-packages
上面可見已經(jīng)安裝成功
但是引入的時候會報錯:
ModuleNotFoundError: No module named 'pymysql'
解決方法:
在uwsgi.ini中添加
```
pythonpath=/usr/local/lib/python3.6/dist-packages
```