I am trying to push some files up to s3 with the AWS CLI and I am running into an error:
upload failed: ... An HTTP Client raised and unhandled exception: unknown encoding: idna
I believe this is a Python specific problem but I am not sure how to enable this type of encoding for my python interpreter. I just freshly installed Python 3.6 and have verified that it being used by powershell and cmd. 
$> python --version
 Python 3.6.7
If this isn't a Python specific problem, it might be helpful to know that I also just freshly installed the AWS CLI and have it properly configured. Let me know if there is anything else I am missing to help solve this problem. Thanks.
I had the same problem in Windows.
After investigating the problem, I realized that the problem is in the aws-cli installed using the MSI installer (x64). After removing "AWS Command Line Interface" from the list of installed programs and installing aws-cli using pip, the problem was solved.
I also tried to install MSI installer x32 and the problem was missing.
AWS CLI upload failed: unknown encoding: idna