Oct-08-2018, 03:57 PM
Hi
I have installed python3.6 in a custom path and set the python home ($PYTHON_HOME) and python path ($PATH).
when I tried to install any packages via PIP it fails with below SSL error. Any suggestions.
[infa@bdm ~]$ pip3.6 install numpy
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting numpy
Could not fetch URL https://pypi.python.org/simple/numpy/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
Could not find a version that satisfies the requirement numpy (from versions: )
No matching distribution found for numpy
[infa@bdm ~]$ echo $PATH
/u01/app/infa/1021/services/shared/spark/python/bin:/u01/app/infa/1021/java/jre/bin:/u01/app/infa/1021:/u01/app/oracle/product/11.2.0/xe/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/jdk64/jdk1.8.0_112/bin:/apps/infa/pwx/1011hf1:/home/infa/bin:/home/infa/.local/bin:/home/infa/bin
[infa@bdm ~]$ echo $PYTHON_HOME
/u01/app/infa/1021/services/shared/spark/python
[infa@bdm ~]$
Thx in advance
Muthu
I have installed python3.6 in a custom path and set the python home ($PYTHON_HOME) and python path ($PATH).
when I tried to install any packages via PIP it fails with below SSL error. Any suggestions.
[infa@bdm ~]$ pip3.6 install numpy
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting numpy
Could not fetch URL https://pypi.python.org/simple/numpy/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
Could not find a version that satisfies the requirement numpy (from versions: )
No matching distribution found for numpy
[infa@bdm ~]$ echo $PATH
/u01/app/infa/1021/services/shared/spark/python/bin:/u01/app/infa/1021/java/jre/bin:/u01/app/infa/1021:/u01/app/oracle/product/11.2.0/xe/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/jdk64/jdk1.8.0_112/bin:/apps/infa/pwx/1011hf1:/home/infa/bin:/home/infa/.local/bin:/home/infa/bin
[infa@bdm ~]$ echo $PYTHON_HOME
/u01/app/infa/1021/services/shared/spark/python
[infa@bdm ~]$
Thx in advance
Muthu