Foros del Web » Programando para Internet » Python »

[SOLUCIONADO] error instalando MySQL-python==1.2.3

Estas en el tema de error instalando MySQL-python==1.2.3 en el foro de Python en Foros del Web. ownloading/unpacking MySQL-python==1.2.3 Downloading MySQL-python-1.2.3.tar.gz (70kB): 70kB downloaded Running setup.py (path:/home/jorge/.virtualenvs/mozbuzz/build/MySQL-python/setup.py) egg_info for package MySQL-python sh: 1: mysql_config: not found Traceback (most recent call last): File ...
  #1 (permalink)  
Antiguo 09/03/2015, 22:02
 
Fecha de Ingreso: agosto-2014
Mensajes: 4
Antigüedad: 9 años, 8 meses
Puntos: 0
error instalando MySQL-python==1.2.3

ownloading/unpacking MySQL-python==1.2.3
Downloading MySQL-python-1.2.3.tar.gz (70kB): 70kB downloaded
Running setup.py (path:/home/jorge/.virtualenvs/mozbuzz/build/MySQL-python/setup.py) egg_info for package MySQL-python
sh: 1: mysql_config: not found
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/home/jorge/.virtualenvs/mozbuzz/build/MySQL-python/setup.py", line 15, 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 24, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
Complete output from command python setup.py egg_info:
sh: 1: mysql_config: not found

Traceback (most recent call last):

File "<string>", line 17, in <module>

File "/home/jorge/.virtualenvs/mozbuzz/build/MySQL-python/setup.py", line 15, 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 24, in mysql_config

raise EnvironmentError("%s not found" % (mysql_config.path,))

EnvironmentError: mysql_config not found

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/jorge/.virtualenvs/mozbuzz/build/MySQL-python


no se que hacer ya buscado por todos lado y nada
  #2 (permalink)  
Antiguo 09/03/2015, 22:21
Avatar de razpeitia
Moderador
 
Fecha de Ingreso: marzo-2005
Ubicación: Monterrey, México
Mensajes: 7.321
Antigüedad: 19 años, 1 mes
Puntos: 1360
Respuesta: error instalando MySQL-python==1.2.3

Ocupas tener las librerías de C de mysql.

Haz un
Código BASH:
Ver original
  1. sudo apt-get install libmysqlclient-dev
y vuelve a tratar.

Fuente
  #3 (permalink)  
Antiguo 10/03/2015, 13:39
 
Fecha de Ingreso: agosto-2014
Mensajes: 4
Antigüedad: 9 años, 8 meses
Puntos: 0
Respuesta: error instalando MySQL-python==1.2.3

gracias por tu respuesta me ayudo mucho para solucionar el problema completo lo hice haciendo esto

apt-get install python-dev libmysqlclient-dev

aqui donde lo consegui http://codeinthehole.com/writing/how-to-set-up-mysql-for-python-on-ubuntu/

Etiquetas: mysql
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 14:03.