Delpoying to render from github

My website will not deploy to to render from github. I am getting errors in vscode

Jul 17 06:03:22 PM ==> Checking out commit d7c9a758c5aa1c6b5b4b8395cc68569403c14ba6 in branch main
Jul 17 06:03:26 PM ==> Using Node version 14.17.0 (default)
Jul 17 06:03:26 PM ==> Docs on specifying a Node version:
Jul 17 06:03:26 PM ==> Using Python version 3.7.10 (default)
Jul 17 06:03:26 PM ==> Docs on specifying a Python version: Specifying a Python Version | Render
Jul 17 06:03:30 PM ==> Using Poetry version 1.1.14 (default)
Jul 17 06:03:30 PM ==> Docs on specifying a Poetry version: Specifying a Poetry Version | Render
Jul 17 06:03:30 PM ==> Running build command ‘pip install -r requirements.txt’…
Jul 17 06:03:30 PM Collecting blinker==1.6.2
Jul 17 06:03:31 PM Downloading blinker-1.6.2-py3-none-any.whl (13 kB)
Jul 17 06:03:31 PM Collecting click==8.1.5
Jul 17 06:03:31 PM Downloading click-8.1.5-py3-none-any.whl (98 kB)
Jul 17 06:03:31 PM Collecting colorama==0.4.6
Jul 17 06:03:31 PM Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Jul 17 06:03:31 PM ERROR: Could not find a version that satisfies the requirement Flask==2.3.2 (from -r requirements.txt (line 4)) (from versions: 0.1, 0.2, 0.3, 0.3.1, 0.4, 0.5, 0.5.1, 0.5.2, 0.6, 0.6.1, 0.7, 0.7.1, 0.7.2, 0.8, 0.8.1, 0.9, 0.10, 0.10.1, 0.11, 0.11.1, 0.12, 0.12.1, 0.12.2, 0.12.3, 0.12.4, 0.12.5, 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.2.5)
Jul 17 06:03:31 PM ERROR: No matching distribution found for Flask==2.3.2 (from -r requirements.txt (line 4))
Jul 17 06:03:31 PM WARNING: You are using pip version 20.1.1; however, version 23.2 is available.
Jul 17 06:03:31 PM You should consider upgrading via the ‘/opt/render/project/src/.venv/bin/python -m pip install --upgrade pip’ command.
Jul 17 06:03:31 PM ==> Build failed :disappointed:

can anyone help

Hi,

The issue is probably that you’re not using the same Python version that you use locally.

The deploy logs you shared show the Python version being used and link to the docs to set it to match the version you developed/tested on:

==> Using Python version 3.7.10 (default)==> Docs on specifying a Python version: https://render.com/docs/python-version

Alan

Flask 2.3.0 and greater requires Python 3.8 or greater, Render defaults to the latest stable 3.7 series release.

See Specifying a Python Version | Render

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