Python Forum
pip3 v21.1.2 SSL Error on RHEL 7
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pip3 v21.1.2 SSL Error on RHEL 7
#1
Hi there, I am on:

Red Hat Enterprise Linux Server release 7.9 (Maipo)

This is a new server, I did:

yum install python3 python3-pip python3-wheel
pip install virtualenv virtualenvwrapper

and I added the following to .bashrc:

export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Devel
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
source $HOME/.local/bin/virtualenvwrapper.sh

I also installed pip under my local user.

The default pip on the system is /usr/bin/pip3 which is version 9.0.3 and is too old.

The pip that is being put into my virtualenv is 21.1.2

When I try to use the 9.0.3 pip it works but because it is old I am running into package problems. When I use 21.1.2 pip3 I get the following:
Error:
$ ./.virtualenvs/candc-server/bin/pip3 install Django WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:877)'),)': /simple/django/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:877)'),)': /simple/django/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:877)'),)': /simple/django/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:877)'),)': /simple/django/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:877)'),)': /simple/django/ Could not fetch URL https://pypi.org/simple/django/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/django/ (Caused by SSLError(SSLError(1, '[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:877)'),)) - skipping ERROR: Could not find a version that satisfies the requirement Django (from versions: none) ERROR: No matching distribution found for Django 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(SSLError(1, '[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:877)'),)) - skipping
Can anyone tell me why I am getting this? Thank you in advance.
Larz60+ write Jun-01-2021, 03:53 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed for you this time. Please use bbcode tags for future posts.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ModuleNotFoundError: No module named '_struct' when starting pip3 yuhuihu 0 2,868 May-05-2022, 04:41 AM
Last Post: yuhuihu
  cmake and pip3 install warnings with python 3.10.2 cyrduf 0 1,894 Feb-26-2022, 01:08 PM
Last Post: cyrduf
  what to do if moudle not in pip3 only in pip2? korenron 22 5,748 Oct-25-2021, 02:35 PM
Last Post: snippsat
  pip3 install opencv-python fails on 'skbuild' Pedroski55 2 5,710 Sep-15-2020, 11:33 AM
Last Post: snippsat
  Install module with pip3 on a non root user matthewpintor2107 1 2,402 Apr-28-2020, 03:16 PM
Last Post: pyzyx3qwerty
  Wrong pip3 python location or new Version 007fred50 1 3,782 Apr-02-2020, 02:36 PM
Last Post: philgoetz
  Python zeep offline installation on RHEL akinmhmt 0 1,995 Mar-26-2020, 09:04 AM
Last Post: akinmhmt
  How do I install Python 3.8.1 in a RHEL 8 UBI container? DevLinuxNC 1 3,606 Jan-08-2020, 09:37 PM
Last Post: Clunk_Head
  Call pip3 from python folder build by me call pip3 from the /usr/bin Suryavarman 3 3,685 Oct-07-2019, 10:23 PM
Last Post: Suryavarman
  Installed Python3.7 from package, trying to run pip3.7 does not work JBristow1729 4 7,533 Aug-11-2019, 08:24 AM
Last Post: michaellossagk

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020