linux下安装python软件包pymssql
首页 > Learning > Programming   作者:eehello  2016年3月30日 22:13 星期三  浏览:7743  字号:   评论:0 条
时间:2016-3-30 22:13   浏览:7743  评论:0 条 

安装pymssql需要的包:

freetds(ftp://ftp.freetds.org/pub/freetds/stable/)

setuptools(https://pypi.python.org/pypi/setuptools)

pymssql(https://pypi.python.org/pypi/pymssql/)

安装步骤:

1. 安装freetds

$wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-patched.tar.gz
#tar zxvf freetds-patched.tar.gz
#cd freetds-0.95.91
#./configure --prefix=/usr/local/freetds --with-tdsver=8.0 --enable-msdblib --enable-dbmfix --with-gnu-ld --enable-shared --enable-static
#make && make install
#echo "/usr/local/freetds/lib" >> /etc/ld.so.conf.d/freetds.conf
#ldconfig -v


2. 安装setuptools


$wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python

3.安装python-dev

#apt-get install python-dev


4. 安装pymssql

#pip install pymssql

注:如果不安装python-dev,会报如下错误:

error: command 'gcc' failed with exit status 1



 您阅读这篇文章共花了: 
 本文没有标签!
二维码加载中...
本文作者:eehello      文章标题: linux下安装python软件包pymssql
本文地址:https://www.eehello.com/?post=206
版权声明:若无注明,本文皆为“点滴记忆---观雨亭”原创,转载请保留文章出处。

返回顶部| 首页| 手气不错| 留言板|后花园

Copyright © 2014-2023 点滴记忆---观雨亭