Reputation: 133
Trying to import snowflake.connector:
import snowflake.connector
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In [1], line 1
----> 1 import snowflake.connector
ModuleNotFoundError: No module named 'snowflake.connector'; 'snowflake' is not a package
so I did:
%pip list
...
snowflake 0.0.3
snowflake-connector-python 2.8.0
snowflake-sqlalchemy 1.4.3
...
I tried:
from snowflake import connector
and got
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In [5], line 1
----> 1 from snowflake import connector
ImportError: cannot import name 'connector' from 'snowflake' (/home/user/.local/lib/python3.8/site-packages/snowflake.py)
Upvotes: 5
Views: 7982
Reputation: 133
The answer as pointed out by @Sergiu was that I had a package called snowflake also installed. Solution:
pip3 uninstall snowflake
Upvotes: 7