如何在 Python 3 中的 Databricks 中使用 python 雪花连接器连接到雪花?

当我尝试将 snowflake-sqlalchemy 库附加到 Databricks 中的 Python 3 集群时,它破坏了我的 Python 构建,并且在我安装后续库时出现以下错误:


AttributeError: cffi 库“_openssl”没有名为“Cryptography_HAS_ED25519”的函数、常量或全局变量


我曾尝试将最新版本的 Cryptography 库分别附加到集群,但这给了我同样的问题。我认为这可能与以下链接有关:


从 azure-databricks-notebook-message-openssl-has-no-function-constant-or-global-variable-named-cryptography 连接到雪花


https://github.com/snowflakedb/snowflake-connector-python/issues/32


在第二个链接中,它提到了一种解决方法:


The workaround is:

Uninstall cryptography by running pip uninstall cryptography

Delete the directory .../site-packages/cryptography/ manually

Reinstall snowflake-connector-python


Looks like the directory structure of cryptography changed since 1.7.2.*

有什么方法可以卸载 Databricks 中预装的密码学 1.5 python 库,以便我可以使用新的目录结构重新安装最新版本的密码学 (2.5)?


互换的青春
浏览 243回答 2
2回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python