在 macOS 10.15.1 上执行以不安全方式加载 libcrypto 的脚本

Executing a script that is loading libcrypto in an unsafe way on macOS 10.15.1

每当我使用显然使用 Python 的 AWS CLI 时,我都会收到以下错误。

aws --version
WARNING: Executing a script that is loading libcrypto in an unsafe way. This will fail in a future version of macOS. Set the LIBRESSL_REDIRECT_STUB_ABORT=1 in the environment to force this into an error.
aws-cli/1.16.15 Python/2.7.16 Darwin/19.0.0 botocore/1.12.5

我是运行它在macOS 10.15.1(19B88),内核版本:Darwin 19.0.0.

我的应用程序 运行 Python 2(目前),所以我还不能升级 Python。

这是由 运行 即将不受支持的 Python 版本引起的吗?

pip install --upgrade pip
pip install --upgrade pyOpenSSL

应该可以为您解决这个问题。它对我有用。

查看更多信息:https://github.com/aws/aws-cli/issues/4708#issuecomment-567232285