Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
Installing mysqlclient...
Error: An error occurred while installing mysqlclient!
Error text: Collecting mysqlclient
Using cached mysqlclient-2.1.0.tar.gz (87 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error
Ć python setup.py egg_info did not run successfully.
ā exit code: 1
ā°ā> [16 lines of output]
/bin/sh: mysql_config: command not found
/bin/sh: mariadb_config: command not found
/bin/sh: mysql_config: command not found
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/_c/3x08c65d7gl4gv3jgfmwl7c00000gn/T/pip-install-s7oqc06_/mysqlclient_621a2c3708c74a0d8a8a502bbb91ca71/setup.py", line 15, in <module>
metadata, options = get_config()
File "/private/var/folders/_c/3x08c65d7gl4gv3jgfmwl7c00000gn/T/pip-install-s7oqc06_/mysqlclient_621a2c3708c74a0d8a8a502bbb91ca71/setup_posix.py", line 70, in get_config
libs = mysql_config("libs")
File "/private/var/folders/_c/3x08c65d7gl4gv3jgfmwl7c00000gn/T/pip-install-s7oqc06_/mysqlclient_621a2c3708c74a0d8a8a502bbb91ca71/setup_posix.py", line 31, in mysql_config
raise OSError("{} not found".format(_mysql_config_path))
OSError: mysql_config not found
mysql_config --version
mariadb_config --version
mysql_config --libs
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Ć Encountered error while generating package metadata.
ā°ā> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
ā Installation Failed
``
1 Like
M1 mac and now I have been fixed that error. That was because MySQL is not the right path.
Iām having the same problem. How did you fix it?
1 Like
Yes, watch this tutorial. It contains solutions 1 and 2. Solution 2 fixed that error.
1 Like