[Python UDF] Failed to import library after CREATE LIBRARY

0

I want to write a Python UDF that uses scikit-learn. Here's the command that I'm running.

CREATE OR REPLACE LIBRARY scikit_learn LANGUAGE plpythonu FROM '...'

I've uploaded the a 2.7 Python package in a .zip file to http://file.io.

Afterwards, I'm trying to run a function that uses sklearn but I'm getting: ImportError: No module named sklearn.covariance. Please look at svl_udf_log for more information.

Why does it fail to import even though it downloaded the package?

Aucune réponse

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions