简体   繁体   English

ImportError:没有名为pyodbc的模块

[英]ImportError: No module named pyodbc

I downloaded the pyodbc module as a zip and installed it manually using the command python setup.py install . 我将pyodbc模块作为zip下载并使用命令python setup.py install手动python setup.py install Although I can find the folder inside the Python directory which I pasted, while importing I am getting the error: 虽然我可以找到我粘贴的Python目录中的文件夹,但导入时我收到错误:

ImportError: No module named pyodbc

I am trying to use to this to connect with MS SQL Server. 我试图用它来连接MS SQL Server。 Help 救命

As installation error showed, installing Visual C++ 9.0 solves problem because setup.py tries to compile some C++ libraries while installing plugin. 由于安装错误显示,安装Visual C ++ 9.0解决了问题,因为setup.py尝试在安装插件时编译一些C ++库。 I thing Cygwin C++ will also work due to contents of setup.py . 我的东西Cygwin C ++也会因setup.py内容而起作用。

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

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