2 months ago
The build is failing with the following error:
ERROR: Could not find a version that satisfies the requirement litellm==1.82.0 (from versions: none)
ERROR: No matching distribution found for litellm==1.82.0
ERROR: failed to build: failed to solve: process "pip install -r requirements.txt" did not complete successfully: exit code: 1
I tried different python version and litellm version but it seems like the problem comes from railway not being able to access the package although the same requirements.txt was properly installed a few hours ago.
Pinned Solution
2 months ago
okay so pypi has suspended the entire litellm package, not just the malicious versions, so no version including 1.82.6 is installable right now. you have two options: either wait for pypi to restore the package (likely within hours), or install directly from github by replacing litellm==1.82.6 in your requirements.txt with this: git+https://github.com/BerriAI/litellm.git@v1.82.6 , that version is confirmed clean
5 Replies
Status changed to Open Railway • about 2 months ago
2 months ago
Hello wendyrachel,
not a railway issue, litellm versions 1.82.7 and 1.82.8 were found to contain malicious code today (march 24 2026) and pypi quarantined the entire litellm package as a result , that's why even 1.82.0 can't be found, nothing to do with your config. the fix is simple: pin litellm to 1.82.6 in your requirements.txt (last safe version) and your build will work again
see the source of my info here: https://github.com/BerriAI/litellm/issues/24512
Hope this help you :)
domehane
Hello **wendyrachel**, not a railway issue, litellm versions 1.82.7 and 1.82.8 were found to contain malicious code today (march 24 2026) and pypi quarantined the entire litellm package as a result , that's why even 1.82.0 can't be found, nothing to do with your config. the fix is simple: pin litellm to 1.82.6 in your requirements.txt (last safe version) and your build will work again see the source of my info here: <https://github.com/BerriAI/litellm/issues/24512> Hope this help you :)
2 months ago
Thank you
I tried with the 1.82.6 version as you suggested but i still get an error:
ERROR: Could not find a version that satisfies the requirement litellm==1.82.6 (from versions: none)
ERROR: No matching distribution found for litellm==1.82.6
ERROR: failed to build: failed to solve: process "pip install -r requirements.txt" did not complete successfully: exit code: 1
2 months ago
You can pull a safe package version from github instead. Update your requirements.txt to point to the source: git+https://github.com/BerriAI/litellm.git@v1.82.6
2 months ago
okay so pypi has suspended the entire litellm package, not just the malicious versions, so no version including 1.82.6 is installable right now. you have two options: either wait for pypi to restore the package (likely within hours), or install directly from github by replacing litellm==1.82.6 in your requirements.txt with this: git+https://github.com/BerriAI/litellm.git@v1.82.6 , that version is confirmed clean
domehane
okay so pypi has suspended the entire litellm package, not just the malicious versions, so no version including 1.82.6 is installable right now. you have two options: either wait for pypi to restore the package (likely within hours), or install directly from github by replacing litellm==1.82.6 in your requirements.txt with this: `git+https://github.com/BerriAI/litellm.git@v1.82.6` , that version is confirmed clean
2 months ago
thanks a lot for your help, pypi restored the package and it works now
Status changed to Solved brody • about 2 months ago
