pyodbc ImportError: DLL load failed: The specified module could > not be found

Chris

When trying to import pyodbc i get the below error. How do I resolve this? All other things I have found on here has not worked. I have also tried everything on this site: https://medium.com/@mauridb/how-to-check-your-anaconda-version-c092400c9978 when it comes to updating the anaconda version (which has only been installed for 30 days on this computer).

I have also tried the below code, and I still get the same error on import. Any assistance would be great.

pip install pyodbc --force-reinstall

I am using:

Python 3.7.4 (default, Aug 9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)] Type "copyright", "credits" or "license" for more information. Spyder 4.0.1 from Anaconda Navigator 1.9.7 on a windows 10 PC

import pyodbc ImportError: DLL load failed: The specified module could not be found.

Chris

Using pypyodbc package worked instead. The connection strings are the same as pyodbc. Call the SQL code with:

import pandas as pd
import pypyodbc

conn = pypyodbc.connect('Driver'={SQL Server};' 
                        'Server=Server;' 
                        'Database=database;
                        'Trusted_Connection=yes;') 

pd.read_sql_query('''SQL CODE''', conn)

It was very important to not use any pace in the connection string where the equal (=) signs are. Not sure why this is.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

ImportError: DLL load failed: The specified module could not be found for numpy

From Dev

Python: ImportError: DLL load failed: The specified module could not be found

From Java

ImportError: DLL load failed: The specified module could not be found

From Java

ImportError: DLL load failed: The specified module could not be found

From Dev

NLTK ImportError: DLL load failed: The specified module could not be found

From Dev

Scipy ImportError: DLL load failed: The specified module could not be found

From Dev

Pyinstaller ImportError: DLL load failed: The specified module could not be found

From Dev

Tensorflow on windows - ImportError: DLL load failed: The specified module could not be found

From Dev

skimage - ImportError: DLL load failed: The specified module could not be found

From Dev

ImportError: DLL load failed: The specified module could not be found (sklearn)

From Dev

ktrain ImportError: DLL load failed: The specified module could not be found

From Dev

MeCab: “ImportError: DLL load failed: The specified module could not be found.”

From Dev

cx_Freeze ImportError: DLL load failed failed while importing _ctypes: The specified module could not be found

From Dev

Trying to install TensorFlow- GPU...failed with ImportError: DLL load failed: The specified module could not be found

From Dev

How can I bypass kivy module error: ImportError: DLL load failed: The specified module could not be found?

From Dev

OpenCV-Python ImportError: DLL load failed: The specified module could not be found

From Dev

Can run script from pycharm, but not from Terminal. ImportError: DLL load failed: The specified module could not be found

From Dev

ImportError: DLL load failed: The specified module could not be found. Tensorflow Chatbot

From Dev

from scipy.linalg import _fblas: ImportError: DLL load failed: The specified module could not be found

From Dev

Exception has occurred: ImportError DLL load failed while importing pdftotext: The specified module could not be found

From Dev

ImportError: DLL load failed while importing _psycopg: The specified module could not be found

From Dev

Unable to open ANACONDA or SPYDER: ImportError: DLL load failed: The specified module could not be found

From Dev

ver.2 PyGreSQL ERROR: from _pg import * ImportError: DLL load failed: The specified module could not be found

From Dev

ImportError: DLL load failed while importing pyexpat: The specified module could not be found

From Dev

Error when trying to import sklearn modules : ImportError: DLL load failed: The specified module could not be found

From Dev

Tensorflow-alpha-gpu issue ImportError: DLL load failed: The specified module could not be found

From Dev

ImportError: DLL load failed: The specified module could not be found. While attempting to import TensorFlow

From Dev

(ibm_db) ImportError: DLL load failed while importing ibm_db: The specified module could not be found

From Dev

ElastAlert ImportError: DLL load failed: The specified procedure could not be found

Related Related

  1. 1

    ImportError: DLL load failed: The specified module could not be found for numpy

  2. 2

    Python: ImportError: DLL load failed: The specified module could not be found

  3. 3

    ImportError: DLL load failed: The specified module could not be found

  4. 4

    ImportError: DLL load failed: The specified module could not be found

  5. 5

    NLTK ImportError: DLL load failed: The specified module could not be found

  6. 6

    Scipy ImportError: DLL load failed: The specified module could not be found

  7. 7

    Pyinstaller ImportError: DLL load failed: The specified module could not be found

  8. 8

    Tensorflow on windows - ImportError: DLL load failed: The specified module could not be found

  9. 9

    skimage - ImportError: DLL load failed: The specified module could not be found

  10. 10

    ImportError: DLL load failed: The specified module could not be found (sklearn)

  11. 11

    ktrain ImportError: DLL load failed: The specified module could not be found

  12. 12

    MeCab: “ImportError: DLL load failed: The specified module could not be found.”

  13. 13

    cx_Freeze ImportError: DLL load failed failed while importing _ctypes: The specified module could not be found

  14. 14

    Trying to install TensorFlow- GPU...failed with ImportError: DLL load failed: The specified module could not be found

  15. 15

    How can I bypass kivy module error: ImportError: DLL load failed: The specified module could not be found?

  16. 16

    OpenCV-Python ImportError: DLL load failed: The specified module could not be found

  17. 17

    Can run script from pycharm, but not from Terminal. ImportError: DLL load failed: The specified module could not be found

  18. 18

    ImportError: DLL load failed: The specified module could not be found. Tensorflow Chatbot

  19. 19

    from scipy.linalg import _fblas: ImportError: DLL load failed: The specified module could not be found

  20. 20

    Exception has occurred: ImportError DLL load failed while importing pdftotext: The specified module could not be found

  21. 21

    ImportError: DLL load failed while importing _psycopg: The specified module could not be found

  22. 22

    Unable to open ANACONDA or SPYDER: ImportError: DLL load failed: The specified module could not be found

  23. 23

    ver.2 PyGreSQL ERROR: from _pg import * ImportError: DLL load failed: The specified module could not be found

  24. 24

    ImportError: DLL load failed while importing pyexpat: The specified module could not be found

  25. 25

    Error when trying to import sklearn modules : ImportError: DLL load failed: The specified module could not be found

  26. 26

    Tensorflow-alpha-gpu issue ImportError: DLL load failed: The specified module could not be found

  27. 27

    ImportError: DLL load failed: The specified module could not be found. While attempting to import TensorFlow

  28. 28

    (ibm_db) ImportError: DLL load failed while importing ibm_db: The specified module could not be found

  29. 29

    ElastAlert ImportError: DLL load failed: The specified procedure could not be found

HotTag

Archive