I have a program that runs an old version of Python, specifically 2.7.13 and I want to use openpyxl with it. I found that openpyxl 2.6.4 is the last version that supports that version of Python, however I can’t install it because pip was not installed with Python 2.7.13 for Windows. I do not know why, it is checked on the installation options but “python -m pip -v” in the command line prints: “C:\Python27\python.exe: No module named pip”.
I tried this script to install it: https://bootstrap.pypa.io/pip/2.7/get-pip.py
However it doesn’t work and just prints this: DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. Defaulting to user installation because normal site-packages is not writeable WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000000000629A2E8>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/pip/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000000000629A470>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/pip/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000000000629A668>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/pip/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000000000629A860>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/pip/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000000000629AA58>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/pip/ ERROR: Could not find a version that satisfies the requirement pip<21.0 (from versions: none) ERROR: No matching distribution found for pip<21.0
So right now I have no idea how to install it, and also why pip wasn’t installed with the rest of the packages.
Is it possible to create a portable wheel of it to not need to actually install it and just use it from the package?
Any help is greatly appreciated, thank you!