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

20 Replies, 716 Views

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.



Users browsing this thread: 1 Guest(s)