Applications created with ruby ​​on rails using AWS
You are deploying.

Proceeding with reference to the links below.

(Deployment ①) The world's most careful AWS explanation. Using EC2 to give your Rails app to AWS

$sudo pip install awscli
If i install with

, you will get an error.

Could not fetch URL https://pypi.python.org/simple/awscli/:
There was a problem confirming the ssl certificate: HTTPSConnectionPool (host = 'pypi.python.org', port = 443):
Max retries exceeded with url:/simple/awscli /
(Caused by SSLError ("Can't connect to HTTPS URL because the SSL module is not available.",))-Skipping
  Could not find a version that satisfies the requirement awscli (from versions:)
No matching distribution found for awscli

A problem with SSL? I wonder if it is
I'm searching for a solution,
I can't find it.

Also check the Amazon official website,
Tried but the same error.
Install the AWS CLI on macOS

I use mac.
With Python 3.6.5, the pip version is pip 9.0.3.

If i can tell me
I'm happy.

  • Answer # 1

    brew uninstall --ignore-dependencies python remove python
    Reinstall Python with brew install python
    Install with pip3 install awscli

  • Answer # 2

    The version of pip is very old (Latest is 19.3.1), so why not update it?
    pip install -U pip

    However, if you are using homebrew in the first place, I think that it is also ant to put in homebrew.
    brew install awscli

Related articles