python - RaspberryPi - MySQLdb -


hello stackoverflow users,

for student project need use python , mysql, when try use i've kind of error

traceback (most recent call last): file "myrfidserv.py", line 2, in import mysqldb importerror: no module named mysqldb

i 've try fix installation of python-mysqldb have error ...

package python-mysqldb not available, referred package. may mean package missing, has been obsoleted, or available source e: package 'python-mysqldb' has no installation candidate

mysql-server install !

i've try sudo pip install mysql-python have kind of error

collecting mysql-python using cached mysql-python-1.2.5.zip complete output command python setup.py egg_info: sh: 1: mysql_config: not found traceback (most recent call last):   file "<string>", line 20, in <module>   file "/tmp/pip-build-lbb0fd/mysql-python/setup.py", line 17, in <module>     metadata, options = get_config()   file "setup_posix.py", line 43, in get_config     libs = mysql_config("libs_r")   file "setup_posix.py", line 25, in mysql_config     raise environmenterror("%s not found" % (mysql_config.path,)) environmenterror: mysql_config not found  ---------------------------------------- command "python setup.py egg_info" failed error code 1 in /tmp/pip-build-lbb0fd/mysql-python 

i don't understand, can me ? ;)

maybe can try

pip install mysql-python 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -