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

20 Replies, 780 Views

SSL errors are a pain. For python pip urllib.request, here’s the nuclear option (use sparingly):

```python
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
```

But really, just use `requests` if you can. urllib.request is like coding with mittens on.

Messages In This Thread



Users browsing this thread: 1 Guest(s)