Collecting mysqlclient from -r requirementstxt line 13 Using cached mysqlclient-211targz 88 kB Preparing metadata setuppy error error subprocess-exited-with-error × python setuppy egg_info did no
It seems there is an error while trying to install the mysqlclient package from the requirements.txt file. The error message suggests that the mysql_config binary is not found on the system, which is required by the installation process.
To fix this issue, you need to install the MySQL development package that includes the mysql_config binary. Depending on your operating system, you can install it using the following command:
For Ubuntu/Debian:
sudo apt-get install libmysqlclient-dev
For CentOS/Fedora:
sudo yum install mysql-devel
For macOS:
brew install mysql
After installing the MySQL development package, try installing the mysqlclient package again using pip
原文地址: http://www.cveoy.top/t/topic/ezy3 著作权归作者所有。请勿转载和采集!