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

后端 未结 11 1126
爱一瞬间的悲伤
爱一瞬间的悲伤 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 10:55

    When you need to install modules in Linux/Unix and you lack sudo / admin rights, one simple way around it is to use the user scheme installation, basically run

    "python setup.py install --user" from the command line in the folder of the module / library to be installed

    (see http://docs.python.org/install/index.html for further details)

提交回复
热议问题