1. 程式人生 > >在樹莓派(Debian系統)上安裝python軟體包pymssql

在樹莓派(Debian系統)上安裝python軟體包pymssql

tar zxvf freetds-stable.tgz
cd freetds-0.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

tar zxvf setuptools-3.5.1.tar.gz
cd setuptools-3.5.1
python setup.py install

tar zxvf pymssql-2.1.0.tar.gz
cd pymssql-2.1.0
python setup.py install

在第三步若出現“command 'gcc' failed with exit status 1”,則安裝sudo apt-get install python-dev