1

I am trying to install HMNI using pip. I have TensorFlow installed and working however I also receive this error when trying to install anything through pip now. I have tried reinstalling Python which did not solve my problem.

I am currently running into the following error:

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/hmni/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/hmni/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/hmni/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/hmni/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/hmni/
Could not fetch URL https://pypi.org/simple/hmni/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/hmni/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement hmni (from versions: none)
ERROR: No matching distribution found for hmni

M1 MacBook Air macOS Big Sur Python 3.8

VPfB
  • 12,212
  • 1
  • 34
  • 61
matt
  • 39
  • 5
  • 1
    This might help https://stackoverflow.com/questions/58280484/ssl-module-in-python-is-not-available-on-osx – CodeIt Oct 02 '21 at 14:25
  • Thanks for the suggestion. Unfortunately that doesn't solve my issue. I run into further issues: '# if we can't import it, let the error propagate ImportError: dlopen(/Users/matthew/mambaforge/envs/tf/lib/python3.9/lib-dynload/_ssl.cpython-39-darwin.so, 2): Library not loaded: @rpath/libssl.1.1.dylib /Users/matthew/mambaforge/envs/tf/lib/python3.9/lib-dynload/../../libssl.1.1.dylib: mach-o, but wrong architecture /Users/matthew/mambaforge/envs/tf/bin/../lib/libssl.1.1.dylib: mach-o, but wrong architecture' – matt Oct 02 '21 at 14:55
  • Try this method, download [hmni](https://github.com/Christopher-Thornton/hmni/archive/v0.1.8.zip) and run `pip install v0.1.8.zip` – CodeIt Oct 03 '21 at 14:12
  • You can use [these](https://phoenixnap.com/kb/install-pip-mac?utm_term=&utm_campaign=&utm_source=adwords&utm_medium=ppc&hsa_ad=545481684602&hsa_kw=&hsa_cam=14630707084&hsa_grp=127504961735&hsa_net=adwords&hsa_mt=b&hsa_ver=3&hsa_tgt=dsa-93451758763&hsa_src=g&hsa_acc=2931804872&gclid=Cj0KCQjw8eOLBhC1ARIsAOzx5cH8m9KiBXPoZG8TOR4AqiRG4HawAtiLAJk-4I_Fl-2zeTWa0enNdEsaAkjFEALw_wcB) commands to install `pip` and then run `pip install ssl`, `pip install hmni`. Let us know if still issue persists. – TFer2 Oct 27 '21 at 08:53

0 Answers0