How to install pyodbc driver on MLflow deployment.

Mateusz Macias 1 Reputation point
2022-09-04T14:07:01+00:00

My model is utilising pyodbc which requires odbc driver to work. I am deploying it using mlflow serving (on azure databricks). How can I ensure that ODBC driver is installed on resulting endpoint?

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
1,948 questions
{count} votes

1 answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA-MSFT 78,576 Reputation points Microsoft Employee
    2022-09-08T08:49:00.51+00:00

    Hello @Mateusz Macias ,

    Thanks for the question and using MS Q&A platform.

    Are you using model serving v1 or v2?

    Go to your experiments, and navigate the the experiment run of interest. Expand ">Artifacts" and check the model_packaged folder, depending on your environment you will see a conda.yaml or python_env.yaml. These files will contain your dependencies. Example below:

    239022-image.png

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is jhow you can be part of Q&A Volunteer Moderators
    0 comments No comments