gpt4 book ai didi

python - 无法识别雪花连接器 python 包

转载 作者:行者123 更新时间:2023-12-05 04:21:24 27 4
gpt4 key购买 nike

尝试导入 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

我这样做了:

%pip list
...

snowflake 0.0.3
snowflake-connector-python 2.8.0
snowflake-sqlalchemy 1.4.3
...



我试过:

from snowflake import connector

得到了

---------------------------------------------------------------------------
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)

最佳答案

@Sergiu 指出的答案是我还安装了一个名为 snowflake 的包。解决方案:

pip3 uninstall snowflake

关于python - 无法识别雪花连接器 python 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74223900/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com