python 安装pymssql

error: command 'gcc' failed with exit status 1
    
    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-vZ7vea/pymssql/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-dCKU9w-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-vZ7vea/pymssql/

安装freetds-devel后,再安装pymssql,否则报上面错误

yum -y install freetds-devel.x86_64
pip install pymssql==2.1.0

  

    原文作者:hufangrui
    原文地址: https://www.cnblogs.com/dbcloud/p/6397270.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞