No module named 'pymysql'

后端 未结 14 1726
清酒与你
清酒与你 2020-12-15 02:32

I\'m trying to use PyMySQL on Ubuntu.

I\'ve installed pymysql using both pip and pip3 but every time I use import pymysq

14条回答
  •  感情败类
    2020-12-15 03:03

    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!

提交回复
热议问题