Python FastAPI app deployment failing due to OSError

Hello, I am getting an error when trying to deploy a Python FastAPI web service. Has anyone else run into this before?

Collecting llama_cpp_python==0.2.13
Nov 8 02:53:29 PM    Downloading llama_cpp_python-0.2.13.tar.gz (7.2 MB)
Nov 8 02:53:30 PM    Installing build dependencies: started
Nov 8 02:53:33 PM    Installing build dependencies: finished with status 'done'
Nov 8 02:53:33 PM  ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/opt/render/project/src/.venv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py'```

Hey Richy,

Did you make sure that you have the right Python version on your Render server? https://render.com/docs/python-version

Jérémy.
Render Support, UTC+3

Hi Jérémy, yes, I have added the environment variable to set Python version at 3.8.10, which is what I am running locally on my machine.

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