Proxy Community
[b]"Having issues with python pip urllib.request - anyone know how to fix common errors?"[/b] or [b]"Best practice - Printable Version

+- Proxy Community (https://proxycommunity.com/forum)
+-- Forum: Technical Community Support (https://proxycommunity.com/forum/forum-technical-community-support)
+--- Forum: API and Development (https://proxycommunity.com/forum/forum-api-and-development)
+--- Thread: [b]"Having issues with python pip urllib.request - anyone know how to fix common errors?"[/b] or [b]"Best practice (/thread-b-having-issues-with-python-pip-urllib-request-anyone-know-how-to-fix-common-errors-b-%0A%0Aor-%0A%0A-b-best-practice)

Pages: 1 2 3


“” - HyperDrift99 - 07-04-2025

urllib.request is... special. For SSL, sometimes the cert bundle is borked.

Fix:

```python
import os
os.environ['REQUESTS_CA_BUNDLE'] = '/path/to/certifi/cacert.pem'
```

Or just use `requests` and save your sanity.