为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

互换的青春 2021-10-19 16:24:49
当我尝试将 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 cryptographyDelete the directory .../site-packages/cryptography/ manuallyReinstall snowflake-connector-pythonLooks like the directory structure of cryptography changed since 1.7.2.*有什么方法可以卸载 Databricks 中预装的密码学 1.5 python 库,以便我可以使用新的目录结构重新安装最新版本的密码学 (2.5)?
查看完整描述

2 回答

  • 2 回答
  • 0 关注
  • 242 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信