pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/
安装时报错
Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
dnf install -y python3-devel mysql-devel
No match for argument: mysql-devel
wget https://dev.mysql.com/get/mysql80-community-release-el8-1.noarch.rpm
rpm -ivh mysql80-community-release-el8-1.noarch.rpm
dnf install -y python3-devel mysql-devel
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing ‘dnf clean packages’.
vim /etc/yum.repos.d/mysql-community.repo
gpgcheck=0 #将里面所有check=1改为0
最后
dnf install -y python3-devel mysql-devel
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/