I\'m trying to use PyMySQL on Ubuntu.
I\'ve installed pymysql
using both pip
and pip3
but every time I use import pymysq
I ran into the same problem earlier, but solved it in a way slightly different from what we have here. So, I thought I'd add my way as well. Hopefully, it will help someone!
sudo apt-get install mysql-client
didn't work for me. However, I have Homebrew already installed. So, instead, I tried:
brew install mysql-client
Now, I don't get the error any more.
Good luck!