Anaconda 3 not installing pyodbc v5

Question:

I have installed Anaconda 3 which includes Python 3.9.16. When I install pyodbc in miniconda it is only version 4. I read it needs to be version 5 if Python is above 3.7. When I run my Python script it I get the message
ModuleNotFoundError: No module named 'pyodbc' even though it is installed.

Is this because pyodbc is version 4 and should be version 5 or could it be another reason? I’ve tried all of the different flavours of installing pyodbc via Conda but I still get this error. I do also have Python 3.11 installed manually. Could there be a conflict?

Asked By: Joshua J Geoghegan

||

Answers:

In the end, I installed Python 3.9 separately to the Anaconda install and I had to install pyodbc using the pip command and it worked. I assumed Anaconda used a different install of Python and would require a conda install.

Answered By: Joshua J Geoghegan
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.