This repository was archived by the owner on Jan 26, 2021. It is now read-only.
Description When running pip3 install -r LSST-server/requirements.txt I get a "mysql_config not found" error.
Console output:
Collecting mysqlclient==1.3.12 (from -r LSST-server/requirements.txt (line 19))
Downloading mysqlclient-1.3.12.tar.gz (89kB)
100% |████████████████████████████████| 92kB 1.1MB/s
Complete output from command python setup.py egg_info:
/bin/sh: 1: mysql_config: not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-ljj5d7vr/mysqlclient/setup.py", line 17, in <module>
metadata, options = get_config()
File "/tmp/pip-build-ljj5d7vr/mysqlclient/setup_posix.py", line 44, in get_config
libs = mysql_config("libs_r")
File "/tmp/pip-build-ljj5d7vr/mysqlclient/setup_posix.py", line 26, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
OSError: mysql_config not found
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ljj5d7vr/mysqlclient/
The solution that worked for me was to install on Ubuntu
sudo apt-get install libmysqlclient-dev
according to this SO post: https://stackoverflow.com/questions/5178292/pip-install-mysql-python-fails-with-environmenterror-mysql-config-not-found
Maybe it is just something weird on my computer, but I prefer to leave it here for the records.
Reactions are currently unavailable
When running
pip3 install -r LSST-server/requirements.txtI get a "mysql_config not found" error.Console output:
The solution that worked for me was to install on Ubuntu
sudo apt-get install libmysqlclient-devaccording to this SO post: https://stackoverflow.com/questions/5178292/pip-install-mysql-python-fails-with-environmenterror-mysql-config-not-found
Maybe it is just something weird on my computer, but I prefer to leave it here for the records.