Issue
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. May I get some help on how to debug this error? Help is appreciated.
Solution
pip install snowflake-connector-python
Have you tried it in jupyter-notebook?
Answered By - Dipendra Pant
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.