Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No module named Snowflake found

I am working on a notebook on a SageMaker instance at my work. My goal is to connect my jupyter notebook to the snowflake database so as to query some data. Here are some details regarding my problem;

(practiceenv) sh-4.2$ python --version
Python 3.8.6

In the same environment, I did run the command;

conda list

And I could see the package;

# Name                    Version                   Build      Channel
 snowflake-connector-python 2.3.10                    py38h51da96c_0    conda-forge

So it seems the correct package is there. Next, I did create a jupyter notebook(condapython3 kernel) in the same environment and tried to import the package

import snowflake.connector
ModuleNotFoundError: No module named 'snowflake

I was able to get the dependencies installed. Please see the screenshot.enter image description here May I get some help on how to debug this error?

like image 348
jay Avatar asked Mar 04 '26 04:03

jay


2 Answers

Uninstall snowflake first (pip uninstall snowflake)

Then install snowflake again(pip install snowflake-connector-python==2.8.3)

This should resolve the issue.

like image 138
Mohsin Shaikh Avatar answered Mar 05 '26 20:03

Mohsin Shaikh


pip install snowflake-connector-python

Have you tried it in jupyter-notebook?

like image 26
Dipendra Pant Avatar answered Mar 05 '26 19:03

Dipendra Pant