Python Forum
Building from source on MacOS: installing certificates
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Building from source on MacOS: installing certificates
I successfully built Python 3.8 on MacOS Sierra, by following the advice at the developer docs (via configure, make, make test, and make install). It's installed on a local directory, I did put the bin directory on my PATH, and everything seems to work fine.

However, I'm getting the infamous "SSL: CERTIFICATE_VERIFY_FAILED" error (which seems to be common in MacOS) when using a program that tries to download a package. The recommended practice is to execute the "Install Certificates. command" that comes with the prebuilt bundle. The problem is that I'm not using the prebuilt bundle, I just built it from source to a local directory, as I said above.

How can I proceed if I'm building from source?

I decided to download the precompiled installer, and extract the "Install Certificates.command" from it, then store the Python code it contains into a "" file (only the Python code, excluding a few non-Python lines), and then run "python3 ./"

It worked fine, but this should be documented somewhere, for users wanting to build from source on MacOS.

Possibly Related Threads…
Thread Author Replies Views Last Post
Lightbulb MacOS can't make it Archi 1 323 May-29-2022, 07:38 AM
Last Post: Larz60+
  Text widget -macOS apffal 1 944 Sep-23-2021, 10:12 PM
Last Post: apffal
  Installing Python3 on MacOS using brew zazas321 5 3,048 May-28-2021, 06:19 AM
Last Post: perfringo
  Installing python3-devel from source on centos6 judith 0 1,188 Dec-04-2020, 05:33 AM
Last Post: judith
  can't open excel with my macos dcc 0 1,626 Oct-30-2019, 04:18 AM
Last Post: dcc
  SSL Root Certificates? Mallows 2 3,190 Jul-26-2019, 10:10 PM
Last Post: Mallows
  pymysql on macos seirra tony1812 5 3,356 Sep-17-2017, 03:24 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020