Install/Update Root Certificates: Python installations on macOS often come with a script to install the certifi bundle of root certificates, which Python needs.
Navigate to your Python x.y installation directory in Finder. It's often under /Applications/Python x.y/ (or similar).
Look for a file named Install Certificates.command.
Double-click this file to run it. It will install or update the necessary certificates.