简体   繁体   中英

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.

在此处输入图像描述 Any idea why it may happen?

Thanks

pyodbc has not yet released Windows wheels for Python 3.9. In the meantime you can download a Python 3.9 wheel from

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

For the latest information on this issue see

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

It's written in open text

"Microsoft Visual C++ 14.0 is required"

. On PyPI website under pyodbc it reads

".....pyodbc contains C++ extensions so you will need a suitable C++ compiler on your computer to install pyodbc, for all operating systems."

I personally have installed Microsoft Visual 2015 C++ Redistributable. It weighs 23,5 Mb.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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