- You can ignore SSL errors by setting pypi.org and files.pythonhosted.org as trusted hosts.
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org <package_name>
Note: Sometime during April 2018, the Python Package Index was migrated from pypi.python.org to pypi.org. This means "trusted-host" commands using the old domain no longer work.
- Permanent Fix: You may want to add the trusted hosts and proxy to your config file.
mkdir -p ~/.config/pip
vi ~/.config/pip/pip.conf
[global]
trusted-host = pypi.python.org
pypi.org
files.pythonhosted.org
- Install boto3
python3 -m pip install boto3