简体   繁体   中英

Unable to import pyodbc for Python 3.9

I've searched about every post I can find and tried everything to try and get my pip install of pyodbc to be recognized by python and I'm not having any luck.

I am a Python beginner, I am just trying to get my hands dirty by automating some NETEZZA SQL reports. So very basic just running out of IDLE Shell 3.9.2:

>>> import pyodbc
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import pyodbc
ImportError: DLL load failed while importing pyodbc: The specified module could not be found.

when I type help("modules") I do see pyodbc in the list:

_symtable fractions pyodbc weakref

I run a python -m pip list to make sure it sees pyodbc as well:

pip list

Pip install gives me "requirement already satisfied:" - it does mention something about urllib3 in case that's relevant:

pip install

lastly I made sure the working directory in IDLE was the same these pip installs are going to:

os.getcwd()

'C:\ProgramData\App-V\4FF67385-8232-4086-95ED-EE994D0333F1\3DB7CB53-C828-47BC-89E4-9D8616F473B0\Root\VFS\AppVPackageDrive\Python3.9.2'

I have no idea where to go next, or other things to look into. Everything I find it seems like it should be working

FYI to anyone who finds this in the future, it was citrix virtual desktop related issues for my work log-in.

Not an actual Python issue that was preventing it from working.

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