0
votes

I want to create a sklearn model on azure machine learning service. But when I run the script then I got error in pyodbc. How to install pyodbc on azure machine learning service?

1
Could you please add some more information to this question? It would be good to know how you have set up your environment and what type of error message you get. - Arvid Bäärnhielm
If you are connecting to a MS SQL Server database, you can use azureml.dataprep, as outlined in the documentation or in this SO answer, without the need pyodbc. - Davide Fiocco

1 Answers

1
votes

Maybe you already solved your issue, but I ran into the same problem with the docker image from Microsoft in Azure Machine Learning Services. (mcr.microsoft.com/azureml/base)

So I built my own docker image based on the base image, and installed the missing MSSQL driver for PyOdbc and some additional locales required by the driver.

hypnobrew/azure-ml:0.1