python SSL CERTIFICATE_VERIFY_FAILED - Serbipunk/notes GitHub Wiki
/Users/zznz/git_w03/Deepsuit/venv/lib/python3.11/site-packages/albumentations/check_version.py:107: UserWarning:Error fetching version info <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)>
503 pip install --upgrade certifi
504 export REQUESTS_CA_BUNDLE=$(python -m certifi)
505 python -m certifi
506 sudo /Applications/Python\ 3.11/Install\ Certificates.command
specifically with the albumentations library, is related to an SSL certificate verification failure when the library tries to check for version updates. This is a common issue that can occur due to network configurations, missing certificates, or outdated SSL settings. Here's how you can resolve it:
Possible Causes
Missing or Misconfigured SSL Certificates: Your system may not have the necessary SSL certificates to verify the server.
Network Restrictions: If you're behind a proxy or firewall, it might block or interfere with SSL verification.
Outdated Python or Libraries: An older version of Python or related libraries (e.g., urllib) might not support modern SSL protocols.
Custom SSL Configuration: Your environment might have custom SSL settings that are causing the issue.