I\'m trying to use PyMySQL on Ubuntu.
I\'ve installed pymysql using both pip and pip3 but every time I use import pymysq
pymysql
pip
pip3
import pymysq
fwiw, for a conda env:
conda install -c anaconda pymysql
After trying a few things, and coming across PyMySQL Github, this worked:
sudo pip install PyMySQL
And to import use:
import pymysql