I had both boto3 and botocore installed in my conda venv, but was getting this error during compilation:
boto3
botocore
E ModuleNotFoundError: No module named 'botocore.compress'
pip install boto3 --upgrade
Source of the answer to a similar problem