How do I deploy a python app using python 3.12 and xterm

So long story short I created an app for a university portfolio project and originally this app was supposed to be hosted on heroku.

However due to some complications im looking to use netllify as a good free alternative. I have hosted js projects on here before.

My issue arises with this particular project which is a python based terminal project using blessed to paint to the terminal and xterm.js to create a mock terminal on the index page.

After trying to deploy the project I ran into these errors

After some digging i found I needed to create a build folder and point it to an environment? which i did and now it’s building but still failing to deploy

[build]
  command = "python run.py"
  publish = "build/"
  environment = { PYTHON_VERSION = "3.12.2" }

Im very unsure how all this works with python hence why im coming here, any help would be appreciated in helping solve this issue.

EDIT 1: It builds but fails to initialize, says it’s missing dependencies as the reason. Im sure this has something to do with the python installation.

the repo in question is this one for those wondering and if they’d like to see if im missing anything which frankly im not sure if i am or not:

Hi, @ShaAnder. You cannot run Python at Netlify except during the build process. There is no way to run a Python application server for the deployed site at Netlify. There is a support guide with more information about this below:

https://answers.netlify.com/t/support-guide-can-i-run-a-web-server-http-listener-and-or-database-at-netlify/3078/18

To summarize, because this app requires a Python backend server, it cannot be hosted at Netlify.