

WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 400 Bad Request'))': /simple/datetime/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 400 Bad Request'))': /simple/datetime/ WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 400 Bad Request'))': /simple/datetime/ Try `python3.9 -m pip install -user` instead. WARNING: Running pip install with root privileges is generally not a good idea. Trying with Python 3.9, it gives the following error, specifying ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 400 Bad Request': python3.9 -m pip install -proxy $http_proxy datetime Trying to install any package on Python 3.6 works successfully: python3 -m pip install -proxy $http_proxy datetime I defined my proxy variables ($HTTPS_PROXY, $HTTP_PROXY) in a dedicated file and set them ( source. I already tries to install them on previous versions (3.6) using proxy, but when I try the very same procedure with the desired version it fails. I would like to install Python packages on a specific Python version (3.9), previously installed on a RedHat VM.
