Early stopping pytorch

Hi,

I am trying to install a Github library and pytorchtools and I keep getting this error:

!pip install git+https://github.com/Bjarten/early-stopping-pytorch

Collecting git+https://github.com/Bjarten/early-stopping-pytorch
Cloning https://github.com/Bjarten/early-stopping-pytorch to /tmp/pip-req-build-txarset_
Running command git clone -q https://github.com/Bjarten/early-stopping-pytorch /tmp/pip-req-build-txarset_
ERROR: Complete output from command python setup.py egg_info:
ERROR: Traceback (most recent call last):
File “”, line 1, in
File “/home/nita/anaconda3/lib/python3.7/tokenize.py”, line 447, in open
buffer = builtin_open(filename, ‘rb’)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-req-build-txarset
/setup.py’
----------------------------------------
ERROR: Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-req-build-txarset_/

Does anyone has previous experience on this. thank you in advance

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 but I don’t see any setup script there.

1 Like

Yes that was the problem!

thank you for your feedback

Was this resolved? Were you able to install?

how did you solve it ? can you please tell me?