pythonscikit-learnsnowflake-cloud-data-platform

Snowflake/ Snowpark "import sklearn" results in "no module found."


I'm using a python worksheet in Snowflake.

When I got to information_schema.packages, scikit-learn is clearly there and installed.

But when I reference 'sklearn' (don't really understand where this full-name vs. shortened name comes from, but sklearn is obviously the reference to scikit-learn package). It says module not found.

My understanding is that it's pre-installed with Snowpark. So what's the deal? What am I doing wrong?


Solution

  • For Python Worksheet UI - Package Picker:

    enter image description here


    For Snowflake Notebooks:

    or