Installing requirements.txt causes numerous package dependency issues in collab

Tried to install the packages using “!pip install -r requirements.txt” from Google Collab and ended up with these errors (i have trimmed the top portion until the point of error):



WARNING: requests 2.1.0 does not provide the extra ‘socks’
Downloading requests-2.0.1-py2.py3-none-any.whl (439 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 439.3/439.3 kB 47.0 MB/s eta 0:00:00
WARNING: requests 2.0.1 does not provide the extra ‘socks’
Downloading requests-2.0.0-py2.py3-none-any.whl (391 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 391.1/391.1 kB 45.9 MB/s eta 0:00:00
WARNING: requests 2.0.0 does not provide the extra ‘socks’
Downloading requests-1.2.3.tar.gz (348 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 348.9/348.9 kB 24.0 MB/s eta 0:00:00
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Preparing metadata (setup.py) … error
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Any clues as to how to over the dependency issues? I even tried to manually install the packages but that got into bigger dependency issues with pandas, torch etc.

1 Like

Did you have your requirement.txt onto the colab file system? I just tried mine and it works. I create the requirements.txt on the below path. Give it a shot. :blush:

!pip install -r “/content/requirements.txt”

Thanks. I uploaded requirements.txt to the default base folder of the colab runtime. Same error.

I am facing the exact same issue. How did you get it resolved?