python的pymssql插件在ubuntu12.04上查询为空?

下载pymssql-2.0.0b1-dev-20111019.tar.gz          (http://pymssql.googlecode.com/files/pymssql-2.0.0b1-dev-20111019.tar.gz)

gzip -d pymssql-2.0.0b1-dev-20111019.tar.gz
tar -xvf pymssql-2.0.0b1-dev-20111019.tar
wget http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg          (在’/home/anyuser/software/pymssql-2.0.0b1-dev-20111019’目录下)
重命名setuptools-0.6c11-py2.7.egg为setuptools-0.6c9-py2.7.egg
运行python setup.py build报错:ImportError: No module named setuptools

apt-get install python-setuptools

运行python setup.py build报错:ImportError: No module named Cython.Distutils

apt-get install cython

python setup.py build

python setup.py install

发表评论

电子邮件地址不会被公开。 必填项已用*标注