Create a venv python -m venv venv/ or if You have multiple python version installed py -3.11 -m venv venv/ Activate the venv .\venv\Scripts\activate install this pip install flask gunicorn tweepy Create a requirements.txt pip freeze > requirements.txt Create a Procfile & add this in the file (for heroku host) web: gunicorn greeting:app Now use any hosting you want.