Why can't easy_install find MySQLdb?

前端 未结 3 898
刺人心
刺人心 2021-01-30 00:58

This is what I tried:

$ easy_install-2.6 -d /home/user/lib/python2.6 MySQLdb  
Searching for MySQLdb  
Reading http://pypi.python.org/simple/MySQLdb/  
Couldn\'t         


        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-30 01:32

    Adam is right but before you run easy_install MySQL-python you need to make sure python-dev is installed as it is not installed by default.

    Install is with apt-get install python-dev.

提交回复
热议问题