How to install MySQLdb package? (ImportError: No module named setuptools)

后端 未结 11 1150
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-25 10:20

I am trying to install MySQLdb package. I found the source code here.

I did the following:

gunzip MySQL-python-1.2.3c1.tar.gz
tar xvf MySQL-python-1.         


        
11条回答
  •  别那么骄傲
    2020-12-25 11:21

    After trying many suggestions, simply using sudo apt-get install python-mysqldb worked for me.

    More info: Getting "Error loading MySQLdb module: No module named MySQLdb" - have tried previously posted solutions

提交回复
热议问题