Hello, there is a need to quickly deploy a web application written in Python and Flask on a computer without the Python interpreter itself, and without any installations. MySQL is used as a database.

If the application was written in PHP, there would be no problems at all: we put Denwer on a flash drive, we carry it to the right place and run it. But as I understand it for Python there are no such distributions.

In the application directory there is a folder with a virtual Python environment, in the same place, as I understood, both the interpreter and the libraries used. Question: if I just run python.exe from the virtual environment folder on another computer, will it work? (32-bit python itself, cross-platform is not needed, Winds will suffice)

If it works out how to deal with MySQL, I’ve also read that XAMPP (or the same Denwer) can also be run from a flash drive, without installation, and MySQL is included in it.

In short, am I digging in that direction, and is it possible to do what I want?

    2 answers 2

    Portable Python and MySQL Windows ZIP Archive will help you.

    • MySQL is clear, thanks. Can I do without Portable Python? - Klym
    • What is your problem with him? - Mikhail Vaysman
    • yes no, actually, will the interpreter from the virtual environment folder just work? So much faster. - Klym
    • You do not need to use the virtual environment on the flash drive. so you don’t need to switch Python versions. - Mikhail Vaysman

    From the analog denwer ʻa you can try ampps there everything, including perl and mongo