Usually, pip install  requires a setup.py file in the directory containing the library to install.
I haven’t used https://github.com/Bjarten/early-stopping-pytorch 156 but I don’t see any setup script there.