简体   繁体   English

Pymssql安装错误

[英]Pymssql Install Error

I'm trying to install FreeTDS using binaries from here , on Windows, but I can't figure out how to install binary files; 我试图使用freetds的二进制文件从安装位置 ,在Windows上,但我无法弄清楚如何安装二进制文件; a google search turned up nothing relevant. 谷歌搜索没有任何相关性。 I'm installing so that the Python module Pymssql can be imported and used. 我正在安装,以便可以导入和使用Python模块Pymssql。

I'm getting the same error as in this post: https://github.com/pymssql/pymssql/issues/372 我收到与此帖相同的错误: https//github.com/pymssql/pymssql/issues/372

我通过将我下载的FreeTDS和OpenSSL文件中的所有.h文件移动到所有其他.h文件位于C:\\Users\\KAllen\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\include ,并将所有.dll文件与其他文件放在C:\\Users\\KAllen\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\bin

You can download the Windows binaries here: 您可以在此处下载Windows二进制文件:

https://sourceforge.net/projects/freetdswindows/ https://sourceforge.net/projects/freetdswindows/

There is an executable installer in the ZIP file you download; 您下载的ZIP文件中有可执行安装程序; install away. 安装走了。 It should install the necessary binaries you need. 它应该安装您需要的必要二进制文件。 Good luck! 祝好运!

  1. Download and install pymssql wheels from here: 从这里下载并安装pymssql wheel:

http://www.lfd.uci.edu/~gohlke/pythonlibs/#pymssql http://www.lfd.uci.edu/~gohlke/pythonlibs/#pymssql

Download and then pip install %userprofile%\\downloads\\pymssql-2.1.2-cp**-cp**m-win??.whl 下载然后pip install %userprofile%\\downloads\\pymssql-2.1.2-cp**-cp**m-win??.whl

  1. conda install -c https://conda.anaconda.org/prometeia pymssql

  2. WinPython may soon include pymssql by default: WinPython可能很快就会包含pymssql:

https://github.com/winpython/winpython/issues/307 https://github.com/winpython/winpython/issues/307

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM