Search code examples
pythonhtmlsftp

Run a Python script without having Python installed


I have a customer who wants to retrieve some files using sftp. I managed to do it with Python on my machine.

Now, I want to implement the solution on his PC without having to install Python on his laptop. What would be the optimal solution?

Would py2exe be the solution?


Solution

  • Hey you can use Pyinstaller to create an executable.

    pip install -U pyinstaller
    pyinstaller your_program.py
    

    See manual for more information.