【发布时间】:2019-06-18 08:10:45
【问题描述】:
当我尝试将 snowflake-sqlalchemy 库附加到 Databricks 中的 Python 3 集群时,它会破坏我的 Python 构建,并且在我安装后续库时出现以下错误:
AttributeError: cffi library '_openssl' has no function, constant or 名为“Cryptography_HAS_ED25519”的全局变量
我曾尝试将最新版本的 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 中预装的 cryptography 1.5 python 库,以便我可以使用新的目录结构重新安装最新版本的 cryptography (2.5)?
【问题讨论】:
标签: python databricks snowflake-cloud-data-platform python-cryptography