简体   繁体   English

通过 pip 在 Windows 上为 Python 3.9 安装 pyodbc 时出错

[英]Error installing pyodbc via pip for Python 3.9 on Windows

I'm a newbie here.我是这里的新手。 I'm trying to install pyodbc by pip but getting below error.我正在尝试通过 pip 安装pyodbc但出现以下错误。

在此处输入图像描述 Any idea why it may happen?知道为什么会发生吗?

Thanks谢谢

pyodbc has not yet released Windows wheels for Python 3.9. pyodbc 尚未为 Python 3.9 发布 Windows 轮子。 In the meantime you can download a Python 3.9 wheel from同时,您可以从以下网址下载 Python 3.9 车轮

https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyodbc https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyodbc

For the latest information on this issue see有关此问题的最新信息,请参阅

https://github.com/mkleehammer/pyodbc/issues/833 https://github.com/mkleehammer/pyodbc/issues/833

It's written in open text它是用开放文本写的

"Microsoft Visual C++ 14.0 is required" “需要 Microsoft Visual C++ 14.0”

. . On PyPI website under pyodbc it reads在 pyodbc 下的 PyPI 网站上,它显示为

".....pyodbc contains C++ extensions so you will need a suitable C++ compiler on your computer to install pyodbc, for all operating systems." “.....pyodbc 包含 C++ 扩展名,因此您需要在计算机上安装合适的 C++ 编译器才能为所有操作系统安装 pyodbc。”

I personally have installed Microsoft Visual 2015 C++ Redistributable.我个人已经安装了 Microsoft Visual 2015 C++ Redistributable。 It weighs 23,5 Mb.它重 23,5 Mb。

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

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