Question

How to setup an app for using unixodbc

I have a Flask app that uses pyodbc for reading and writing data from and to a SQL Server. The requirements.txt contains the pyodbc, but I can’t install the required unixodbc driver in the app platform. Is there a way to install it? Thanks


Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
February 14, 2023

Hey @marcozanella,

As of the time being, in order to install some custom packages, you could use a Dockerfile to deploy your app along with all of its dependencies.

You can follow the steps on how to do that here:

https://github.com/digitalocean/sample-dockerfile/blob/main/Dockerfile

Hope that helps!

- Bobby.