On the old python 2.7.5 version, the pip install package does not install due to the ssl error.

I have Python 2.7.5 and pip 20.2.4 installed on my computer. When I use the pip install command it gives an SSL connection error. Although I define it as a trusted domain and use the -Wignore parameter, I keep getting SSL errors.

The error I get is as follows.

ssl_.py:142: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

Can you help me fix this error?

pip no longer supports Python 2.7.5. You need to upgrade to a newer version of Python (2.7.9 or later for now, but pip will drop support for Python 2 early in 2021).

Or you should stay on an older version of pip, and be aware that you are using unsupported software.

The website I want to run is written in python 2.7.5 version. For this reason, it is not possible for me to upgrade the python version.

I downloaded the packages from https://pypi.org/ SSL site and copied it to the local computer where the python was installed.

I used the easy_install.exe command to install the packages.

Example command line
. \ easy_install.exe /home/download/backports.functools_lru_cache-1.5.tar.gz

In this way, I installed the packages I wanted in python 2.7.5.

Thanks