I made a portable python script on Windows, by putting the whole python folder into the root directory:
ProjectFolder
|- run.bat
|- main.py
|- python <--- Python 3.10.1, downloaded from https://www.python.org/downloads/release/python-3101/
|- ...
|- python.exe
|- ...
run.bat
@setlocal enableextensions
@cd /d "%~dp0"
start "