4 ms·
My easy method to make such a self-contained environment: - download the Python embedded environment, - modify `pythonXX.pth` to `import site`, - install pip
by plonk 4y ago
My easy method to make such a self-contained environment:
- download the Python embedded environment,
- modify `pythonXX.pth` to `import site`,
- install pip in the environment,
- install all dependencies with pip,
- install your code as an executable module (with a `__main__.py` file).
You can ship this as a ZIP file and simply run `./python.exe -m your_module arg1 arg2 arg3...`