Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have implemented a new algorithm in python, using sources which use the numpy, scipy libraries and deal with file I/O. I now need to build a Windows GUI app (python might not be installed in any form on a Windows OS) which will implement my existing python source, and take inputs such as file names and some other parameters. Please suggest some possible methods to make this happen.
You may create a GUI for your app, using different options like as below:
wxPython
TkInter
PyQt
This question may help you too.
Regarding creating the final executable you have some options like as below:
py2exe
GUI2EXE
cx_freeze
PyInstaller
There are other issues regarding the creation of an executable discussed here on the SO you may refer to them here if you are interested.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
Some programming languages provide capability t create a self contained packages that can run on any machine.
For example, dotnet core can self-contained apps per below:
https://learn.microsoft.com/en-us/dotnet/core/deploying/#publish-self-contained
The C# self-contained apps can be single large file, or a directory of all files required to run the application. The package can target Linux, mac or Windows.
In Python, what is the closest feature to self-contained app packages described above?
PyInstaller seems to be the current go to, and it works well in my experience. However, some people have reported that it has very large file sizes, but I've personally never found that to be a major issue.
If you use that, you would also probably need some kind of UI, but that's a separate issue in itself.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I want to make a small .exe file that will work in any PCs , is it possible to make and if yes then what is the procedure ?
Check this: https://github.com/brentvollebregt/auto-py-to-exe
It's an open source project called auto-py-to-exe. It's a GUI with PyInstaller internally, making more confortable alternative. It can also output a standalone file in contrast to other solutions.
Since you wrote a terrible question, I will write a terrible answer:
Yes, you can make .exe files in python. You need a package called "psutil" which can convert your .py files into .exe files AND convert them into executables for other operating systems as well. A .exe file only works on Windows, so some PC running a Linux Distro won't be able to run it.
Edit: pyinstaller is also useful when you want to just make a .exe
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to understand the difference between distributing a python application. The application should be used on both Windows and Mac OS platforms. I see there are two ways of doing it.
Either create a executable using py2exe / py2app etc
Distribute the application using pip.
I would like to understand the use-cases for both the solutions.
A few things. As Sam Chats mentioned, one possible use case for creating the executable is if you don't want to share your source code, while if you distribute the application using pip, you will be able to. Additionally, if you distribute using pip vs. creating an application, more users may be able to easily access your application. As an example, check out this StackOverflow answer as a reason for using pip over Anaconda
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm using Blender and Python and want to give the .py file to other users to use my script... My script uses external modules (like NumPy) which will rise the errors (like can't find module xxxx).
Not all people can install NumPy (or even Python :D) as many Blender users are just artists.
Another note is that NumPy doesn't work with Blender (I install it in the system's Python, then delete Blender Python so it relies on the system Python).
If you want to distribute your code with external dependencies then you should build a Python egg. The .egg format was created to solve the issue you are dealing with. It is a self-contained release of your code with dependencies and meta-data. Here is some information on how create Python eggs.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have an open source project written in python , it has some Forms and I want to modify a few things in the code and in the forms but it is my first time with python and I don't know what IDE to use and how to start ..my basic question is can I deal with forms in python like c#, java ...etc ? and how should I start ?
Because this project uses pyGTK, you can use glade which is a gtk forms designer, but it would probably add an extra layer of complexity that's really not necessary. Since you're already familiar with C#/Java, I'd recommend running through the official Python tutorial. Then I'd take a look at this excellent PyGTK tutorial. If you spend about a day really trying to understand the Python model and the "pythonic" way of doing things, you should then be able to easily modify that program.
While you probably don't need to use and IDE for a project this simple, if you want, you can use Eclipse (which you may be familiar with coming from Java) with PyDev. It allows you to write/debug Python programs inside the what may be the familiar Eclipse IDE.