Error to deploy a fastAPI app with transformers

Hi everyone, I’m facing this problem to deploy mi API:

Jul 26 07:29:18 PM ERROR: Could not find a version that satisfies the requirement transformer==4.31.0 (from -r requirements.txt (line 5)) (from versions: none)

*ERROR: No matching distribution found for transformer==4.31.0 (from *
-r requirements.txt (line 5)

So, the question is:
Is possible to deploy a API which use Trasnformers?
according to the error seems there aren’t any version of transformers is available in render.


I think the issue here is that you’re not using the same Python version that you use locally.

The deploy logs show the Python version being used and link to the docs to change it, e.g.:

==> Using Python version 3.7.10 (default)
==> Docs on specifying a Python version:

Set it to match the version you developed/tested on.

Kind regards


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.