I think you need to run:

sage -i openssl
sage -f python3

and then you should be able to add packages through pip. 

On Wednesday, August 26, 2020 at 12:23:20 PM UTC-4 dim...@gmail.com wrote:

> On Wed, Aug 26, 2020 at 5:10 PM David Coudert <david....@gmail.com> wrote:
> >
> > Hello,
> >
> > I'm posting this here as it may help improving the documentation of sage 
> math and the install guide of Cplex.
> >
> > A colleague (with very little system knowledge) just installed sagemath 
> on his new macOS laptop using the precompiled binary 
> sage-9.1-OSX_10.15.4-x86_64.app.dmg.
> > He also installed Cplex Studio 12.10.
> > Then he followed the install guide of Cplex from 
> https://github.com/mkoeppe/sage-numerical-backends-cplex and got the 
> following error.
> > I don't know how to solve this issue.
> >
> > Any help is more than welcome :))
> >
> > Best,
> > David.
> >
> > =====
> > aioli:~ nnisse$ sage -python -m pip install sage-numerical-backends-cplex
> > pip is configured with locations that require TLS/SSL, however the ssl 
> module in Python is not available.
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> this is the 1st problem to fix, by doing
> "sage -i openssl pyopenssl"
> and crossing your fingers...
>
>
>
>
> > Collecting sage-numerical-backends-cplex
> > 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/sage-numerical-backends-cplex/
> > 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/sage-numerical-backends-cplex/
> > 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/sage-numerical-backends-cplex/
> > 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/sage-numerical-backends-cplex/
> > 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/sage-numerical-backends-cplex/
> > Could not fetch URL 
> https://pypi.org/simple/sage-numerical-backends-cplex/: There was a 
> problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', 
> port=443): Max retries exceeded with url: 
> /simple/sage-numerical-backends-cplex/ (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 
> sage-numerical-backends-cplex (from versions: )
> > No matching distribution found for sage-numerical-backends-cplex
> > 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
> > =====
> >
> > --
> > You received this message because you are subscribed to the Google 
> Groups "sage-devel" group.
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to sage-devel+...@googlegroups.com.
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/45eb9955-098f-4583-9716-b1651ce89845n%40googlegroups.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/fbbc0b03-876b-42cb-bffd-1e0e8fa53e79n%40googlegroups.com.

Reply via email to