Linux the process of installing pymssql
This article mainly explains the "linux installation pymssql process", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "linux installation pymssql process" bar!
First, you need to find the appropriate package.
Freetds (http://www.filewatcher.com/m/freetds-0.82.tar.gz.1596755-0.html)
Setuptools (https://pypi.python.org/pypi/setuptools)
Pymssql (https://pypi.python.org/pypi/pymssql/)
Installation steps:
1. Install freetds
# tar zxvf freetds-0.82.tar.gz
# cd freetds-0.82
#. / 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
Do as the document says, always make mistakes.
Error: command 'gcc' failed with exit status 1
There is no way, I can only follow my way to do it, and finally succeed, the details are as follows:
Check whether the python-devel package is installed, if not, please install
# yum install-y python-devel
# tar zxvf freetds-0.82.tar.gz
# cd freetds-0.82
#. / configure No parameters are added here
# make
# make install
# ldconfig-v
In addition, you need to check whether the following packages exist
Libxml2 libxml2-dev libxslt* zlib gcc openssl
two。 Install setuptools
# tar zxvf setuptools-3.5.1.tar.gz
# cd setuptools-3.5.1
# python setup.py install
3. Install pymssql
# tar zxvf pymssql-2.1.0.tar.gz
# cd pymssql-2.1.0
# python setup.py install
Thank you for reading, the above is the content of "the process of installing pymssql in linux". After the study of this article, I believe you have a deeper understanding of the process of installing pymssql in linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!