Answer a question

Whenever I use the AWS CLI, which obviously uses Python, I get the following error.

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

I am running it on macOS 10.15.1 (19B88), kernel version: Darwin 19.0.0.

My application is running on Python 2 (for now) so I can't upgrade Python quite yet.

Is this caused by running a soon-to-be-unsupported version of Python?

Answers

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

should resolve this for you. It has worked for me.

See more at: https://github.com/aws/aws-cli/issues/4708#issuecomment-567232285

Logo

Python社区为您提供最前沿的新闻资讯和知识内容

更多推荐