python3.8 install pymssql
sudo su -
yum -y install wget vim
cd /usr/local/src/
pip3 install Cython
wget https://files.pythonhosted.org/packages/2e/81/99562b93d75f3fc5956fa65decfb35b38a4ee97cf93c1d0d3cb799fffb99/pymssql-2.1.4.tar.gz
tar -zxvf ./pymssql-2.1.4.tar.gz
cd ./pymssql-2.1.4/
vim setup.py
#1,在文件开头添加
import distro
#2,修改以下内容
platform.linux_distribution() --> distro.linux_distribution()
:wq!保存退出
#设置环境变量
export PYMSSQL_BUILD_WITH_BUNDLED_FREETDS=1
#执行安装
python3 setup.py install