Python Forum

Full Version: How to install project on user machines
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I'm new to Python, but not to programming.

I made a small, but useful application in PyCharm (v2020.2.3) that I'd like to move to user machines.

What is the best way to bundle/package/freeze/deploy what I've done and install it on other machines?

Thanks!
Is there going to be python available on the target machines?
It depends.

If Windows machines, pyinstaller is good for creating an executable for small projects
If you are less sure of the OS's (and, say, want to include Chromebooks), then web deployment with Flask would be a good idea.

If it's more a command line interface and no GUI, you might figure out something with Colab (colab.research.google.com). You pick up the Chromebooks and it is web based.
Thank you both for your responses.
  • This will be another Windows machine.
  • It is a small project with GUI.
  • It includes a couple of imports like pyodbc, pyqt, and pandaas.
  • I could load Python, but I'd really rather have that be part of the deployable package.

I'll check out Pyinstaller and see if that's a good fit.
pyinstaller is probably what you look for. It will produce exe.
But you may also look at pynsist. It will bundle python into the installer

That is if you want to distribute python along with your code