我在使用 pip 下载 aerospike 后尝试导入它,但出现此错误。
我尝试使用自制软件和图形安装程序重新安装 python,但结果是一样的。我可以导入其他包,例如 numpy。
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/usr/local/lib/python3.7/site-packages/aerospike.cpython-37m-darwin.so, 2): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/lib/python3.7/site-packages/aerospike.cpython-37m-darwin.so
Reason: image not found
最佳答案
在 OSX Catalina 上,默认的 openssl 安装存在一些问题。请按照以下步骤操作。
brew update && brew upgrade
brew uninstall openssl; brew uninstall openssl; brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
更多细节在这里 - https://github.com/kelaberetiv/TagUI/issues/86
关于python-3.x - 无法在 python 3.7 中导入 aerospike,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60773755/