You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't build _hashlib and _ssl optional modules using brew install on Mac OS X #93695
The necessary bits to build these optional modules were not found:
_hashlib _ssl
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
Could not build the ssl module!
Python requires a OpenSSL 1.1.1 or newer
For some reason, specifying the openssl version in the command line provided in the documentation resolved the issue: brew install openssl@1.1 xz gdbm
As mentioned by @ezio-melotti in the PR python/devguide#891, it is awkward to have to specify the version of openssl as it should by default install the latest version. It nevertheless did the trick for me. As a test, I uninstalled openssl, and installed it again, without specifying the version in the command line, and this time it worked. It is unclear to me why, certainly some files that were created when installing the specific version.
I am therefore creating PR python/devguide#892 suggesting to specify the version if user faces this current issue.
Activity
Note to user when modules do not build
erlend-aasland commentedon Jun 19, 2022
Fixed by python/devguide#892. Thanks for the report and the PR, Izumi :)
Fix python/cpython#93695: Document how to install openssl v1.1 w/Home…