Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install -r requirements.txt error #389

Open
scorbin opened this issue Feb 2, 2022 · 1 comment
Open

pip install -r requirements.txt error #389

scorbin opened this issue Feb 2, 2022 · 1 comment
Labels

Comments

@scorbin
Copy link

scorbin commented Feb 2, 2022

Python 3.8.10
I tried running the pip install got the follow error. Thanks

Collecting GeoIP==1.3.2
Using cached GeoIP-1.3.2.tar.gz (20 kB)
Collecting mysqlclient==1.3.10
Using cached mysqlclient-1.3.10.tar.gz (82 kB)
ERROR: Command errored out with exit status 1:
command: /home/scorbin/virtenvs/uberserver/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qwx8gcr7/mysqlclient/setup.py'"'"'; file='"'"'/tmp/pip-install-qwx8gcr7/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-qwx8gcr7/mysqlclient/pip-egg-info
cwd: /tmp/pip-install-qwx8gcr7/mysqlclient/
Complete output (10 lines):
/bin/sh: 1: mysql_config: not found
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-qwx8gcr7/mysqlclient/setup.py", line 17, in
metadata, options = get_config()
File "/tmp/pip-install-qwx8gcr7/mysqlclient/setup_posix.py", line 44, in get_config
libs = mysql_config("libs_r")
File "/tmp/pip-install-qwx8gcr7/mysqlclient/setup_posix.py", line 26, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
OSError: mysql_config not found
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

@abma
Copy link
Contributor

abma commented Feb 2, 2022

-> https://pypi.org/project/mysqlclient/

on debian/ubuntu:

$ sudo apt-get install python3-dev default-libmysqlclient-dev build-essential

@abma abma added the feedback label Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants