![macports install python 3.6 macports install python 3.6](https://img.youtube.com/vi/QPw8dOWU8VE/0.jpg)
![macports install python 3.6 macports install python 3.6](https://machinelearningmastery.com/wp-content/uploads/2018/01/How-to-Install-XGBoost-for-Python-on-macOS.jpg)
Import pprint import ssl import sysconfig print( ssl. The relevant commands for finding this information are: So both the cURL certificates bundle and the certifi certificates bundle appear to be derived from the Mozilla certificates bundle. The URL mentioned in the file README.markdown is: Based on what the Python package certifi describes in its file README.rst, and the repository cert-tools, the certificates bundle of certifi is created from the Mozilla certificates bundle using the the tool in the repository extract-nss-root-certs. Python 3.6 uses an openssl that appears to have been installed from source by me, and its certificates file cert.pem is a symbolic link to the file. These observations suggest that ssl on these Python installations uses the Mozilla certificates bundle. The URL mentioned in the certificates file is: This provenance of cURL's certificate bundle is confirmed also from cuRL's website (as mentioned there, the script creates cURL's certificate bundle). Looking in the file curl-ca-bundle.crt, it reads In fact, as revealed by port contents curl-ca-bundle, these two files are both installed by the MacPorts subport curl-ca-bundle: Python 3.7, 3.8, 3.9 use the MacPorts openssl, and its certificates file cert.pem is a symbolic link to the file. Looking at my Python installations, it seems that the following are the cases: One solution is to install these libraries from a third-party package manager, like Homebrew or MacPorts, and then add the appropriate paths for the header and library files to your configure command. The following documentation can be useful:Īs of OS X 10.11, Apple no longer provides header files for the deprecated system version of OpenSSL which means that you will not be able to build the _ssl extension. When building CPython >= 3.7 from source, the script configure has an option -with-openssl to override the root of the OpenSSL directory: having an installation of OpenSSL on macOS when building Python, and.