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
#1
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?

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

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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python installation for old MacOS Yonix 1 452 Sep-21-2023, 03:32 PM
Last Post: menator01
  Why is IDLE not opening on a MacOS Montery 12.6 and using Python 3.10.7? Merlin385 7 1,571 Oct-08-2022, 08:36 PM
Last Post: Merlin385
Lightbulb MacOS can't make it Archi 1 1,159 May-29-2022, 07:38 AM
Last Post: Larz60+
  Text widget -macOS apffal 1 1,683 Sep-23-2021, 10:12 PM
Last Post: apffal
  Installing Python3 on MacOS using brew zazas321 5 5,015 May-28-2021, 06:19 AM
Last Post: perfringo
  Installing python3-devel from source on centos6 judith 0 2,131 Dec-04-2020, 05:33 AM
Last Post: judith
  can't open excel with my macos dcc 0 2,323 Oct-30-2019, 04:18 AM
Last Post: dcc
  SSL Root Certificates? Mallows 2 4,761 Jul-26-2019, 10:10 PM
Last Post: Mallows
  pymysql on macos seirra tony1812 5 4,463 Sep-17-2017, 03:24 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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