0

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

Is there a solution that does not involve reinstalling nor re-building the python executable? With conda installations or otherwise, you do not always know which source to use for rebuilding with SSL, which is what most other solutions suggest.

matanster
  • 15,072
  • 19
  • 88
  • 167
  • 2
    The `ssl` module [uses `_ssl`, which is built-in](https://github.com/python/cpython/blob/3.7/Lib/ssl.py), so I'm afraid it's not possible to incorporate that into Python without rebuilding it. As for which source to use, CPython's source is available on the official website. You may need to build some third-party libraries like OpenSSL before building Python – ForceBru Feb 16 '19 at 11:31
  • Thanks for the answer. Admittedly this makes one a bit nervous on a system where they have a full slew of packages already installed possibly (who knows) sensitive to a very specific python build. – matanster Feb 17 '19 at 03:14
  • You can dump all the information about the installed packages using pip (`pip freeze`, I believe). Also check [this](https://stackoverflow.com/questions/11147667/is-there-a-way-to-list-pip-dependencies-requirements). Then, once you have all the dependencies of your packages, identify the ones built into Python and build the interpreter according to that. – ForceBru Feb 17 '19 at 11:27

0 Answers0