Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This still happens for me, even in 9.1 (on OS X). In my case:

% ( set -ex ; cd ~/Applications/SageMath.app/Contents/Resources/sage ; ./local/bin/sage -pip install py-heat-magic )
+-zsh:21> cd /Users/…/Applications/SageMath.app/Contents/Resources/sage
+-zsh:21> ./local/bin/sage -pip install py-heat-magic
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting py-heat-magic
  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/py-heat-magic/
  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/py-heat-magic/
  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/py-heat-magic/
  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/py-heat-magic/
  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/py-heat-magic/
  Could not fetch URL https://pypi.org/simple/py-heat-magic/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/py-heat-magic/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  Could not find a version that satisfies the requirement py-heat-magic (from versions: )
No matching distribution found for py-heat-magic
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

This still happens for me, even in 9.1 (on OS X). X installed via downloaded .dmg). In my case:

% ( set -ex ; cd ~/Applications/SageMath.app/Contents/Resources/sage ; ./local/bin/sage -pip install py-heat-magic )
+-zsh:21> cd /Users/…/Applications/SageMath.app/Contents/Resources/sage
+-zsh:21> ./local/bin/sage -pip install py-heat-magic
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting py-heat-magic
  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/py-heat-magic/
  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/py-heat-magic/
  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/py-heat-magic/
  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/py-heat-magic/
  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/py-heat-magic/
  Could not fetch URL https://pypi.org/simple/py-heat-magic/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/py-heat-magic/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  Could not find a version that satisfies the requirement py-heat-magic (from versions: )
No matching distribution found for py-heat-magic
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

UPDATE: I totally missed the answer above pointing to https://ask.sagemath.org/question/51130/ssl-error-using-sage-pip-install-to-download-a-package/ . Perhaps this should be closed as a dup?


This still happens for me, even in 9.1 (on OS X installed via downloaded .dmg). In my case:

% ( set -ex ; cd ~/Applications/SageMath.app/Contents/Resources/sage ; ./local/bin/sage -pip install py-heat-magic )
+-zsh:21> cd /Users/…/Applications/SageMath.app/Contents/Resources/sage
+-zsh:21> ./local/bin/sage -pip install py-heat-magic
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting py-heat-magic
  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/py-heat-magic/
  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/py-heat-magic/
  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/py-heat-magic/
  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/py-heat-magic/
  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/py-heat-magic/
  Could not fetch URL https://pypi.org/simple/py-heat-magic/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/py-heat-magic/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  Could not find a version that satisfies the requirement py-heat-magic (from versions: )
No matching distribution found for py-heat-magic
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping