The last version which supported Python 2.7 was apparently 0.18.0. "setup.py" seems to have changed appropriately to
which keeps pip from installing anything new than 0.18.0 via PiPi.
But if you look at the
PyPi download page, you see this:
Built Distribution
[python_dotenv-0.19.2-py2.py3-none-any.whl ]
Uploaded Nov 11, 2021 py2 py3
where the wheel is falsely advertising "py2" compatibility. I think you need to remove this from "setup.cfg" [bdist] section
so that you don't build a universal wheel anymore.
The last version which supported Python 2.7 was apparently 0.18.0. "setup.py" seems to have changed appropriately to
python-dotenv/setup.py
Line 35 in ba9408c
which keeps pip from installing anything new than 0.18.0 via PiPi.
But if you look at the PyPi download page, you see this:
where the wheel is falsely advertising "py2" compatibility. I think you need to remove this from "setup.cfg" [bdist] section
python-dotenv/setup.cfg
Line 10 in ba9408c
so that you don't build a universal wheel anymore.