Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

9
  • 4
    I've successfully used this technique on Unix, but cannot get it to work on Windows Commented Apr 15, 2019 at 9:24
  • 1
    Also with set CURL_CA_BUNDLE="" not working on Windows for me Commented Feb 17, 2020 at 10:50
  • 3
    This is amazing in its simplicity and hackiness :) Confirming this works as described on macOS 10.14 with Python 3.7/3.8.
    – BrianC
    Commented Aug 6, 2020 at 22:11
  • 2
    @David: That's how variables work in Bash and similar shells. If you just do CURL_CA_BUNDLE="", that only sets the variable within the context of that specific shell or for the command that follows on the same line. If you use export CURL_CA_BUNDLE="", then it will also apply to any new processes started from that shell, like Python (but still not ones in completely separate processes). Commented Oct 13, 2020 at 14:23
  • 7
    This no longer works with requests 2.28.0 or newer, since it was considered a bug, see github.com/psf/requests/issues/6071... Commented Jun 9, 2022 at 17:36