Skip to content
← Back to Community
Cannot download pyodbc on repl.it
Profile icon
PackDaddy

This is my first time using repl.it. I am trying to create a python interface to create custom queries for a Microsoft Access data files used in my new job. In order to create a connection to the accesses file, I am trying to import pyodbc, however, I have not be able to import the module in either python 2.7 or 3.5. I have been getting a Repl.it: package installation failed! error along with other error codes that have been dead ends when searching on google. Any help would be appreciated!

Voters
Profile icon
IvanMworozi
Profile icon
GabrielDorea
Profile icon
Ashleen12
Profile icon
aGEEKdude
Profile icon
MaxHeinze
Profile icon
arnoldschan
Profile icon
SudeepSinghSing
Profile icon
julianvanegas
Profile icon
JustARatherRidi
Profile icon
PackDaddy
Comments
hotnewtop
Profile icon
arnoldschan

any resolution on this? the environment doesn't have any ODBC driver installed. So pyodbc refused to be installed.
However, because no root access, we cannot install anything inside repl.it.
looks like we cannot fully rely on repl.it if we want to connect MSSQL server

Profile icon
pdxJaxon

I am getting the exact same error...any resolution?

Profile icon
ash15khng

Add a file called requirements.txt.
It should look like this:

pyodbc

if you're using the newest version.
If not, use equality/greater than/lesser than operators (==, <, >, <=, >=) with the version numbers to specify a number.

Profile icon
ryanhcode

Can you send us a link to the code or just the code so we can see the error?

Profile icon
PackDaddy

@ryanhallihan https://repl.it/@PackDaddy/Stevos-second-repl

And my error message is attached.
This file cannot be displayed: https://storage.googleapis.com/replit/images/1559234432293_d0b77c2f712dc5edbeaa808a73817c7f.pn