Is there another way to convert it?
How to Convert .py to .exe without Requiring a Python Installation to Windows
Or some way to install py2exe for 2. If everything goes well, in the folder where you have your script. Learn more. Asked 2 years, 11 months ago. Active 1 year, 2 months ago. Viewed 29k times. Luis Dias Luis Dias 1 1 gold badge 2 2 silver badges 7 7 bronze badges. Have you tried pip install py2exe in your conda environment?
It says 'RuntimeError: This package requires Python 3. I see; it seems py2exe stopped supporting Python 2. Active Oldest Votes. How to create an executable using Anaconda 3 specifically Anaconda Prompt for Windows.
Rui Filipe Rui Filipe 91 1 1 silver badge 1 1 bronze badge. Instead of using py2exe you could try to build your executable with pyinstaller.
Marcel S. Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Programming tutorials can be a real drag. Featured on Meta. Community and Moderator guidelines for escalating issues via new response…. Feedback on Q2 Community Roadmap.
The dark mode beta is finally here. Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. From what I read in the error it seems like a networking issue to me.
Can you please try a simple ping from your command prompt to be sure that it is working correctly? If all the above is fine please try the same command you used to install the module from a command window that was opened with administrator rights right click on "command prompt" and then on "Execute as Administrator".
If this fails you can also install the module cloning it from the github repo using the following commands:. Learn more.
Installing auto-py-to-exe module for Python 3. Asked 8 months ago. Active 8 months ago. Viewed 1k times. Pitto 4, 1 1 gold badge 25 25 silver badges 33 33 bronze badges. Active Oldest Votes. Pitto Pitto 4, 1 1 gold badge 25 25 silver badges 33 33 bronze badges.
Pinging 8. Timeout for this request. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.After helping many of people fix issues with auto-py-to-exe and PyInstaller, this post contains what I think you should understand and ways to fix issues you are having with auto-py-to-exe.
A while ago I wrote an article on common issues when using auto-py-to-exe. In this post I aim to replace that post and explain more in greater depth. This is going to be long, but hopefully your question can be answered in here. I'll go over installing auto-py-to-exe, the interfaces content, how to use it, debugging and common issues that I see appear time and time again.
Please do not feel offended if I have referred you to this page, it's just the case that many other people have asked the exact same question you are asking and you haven't been able to find the answers I or others have provided. I cannot guarantee this post or any advice I give will fix all your issues with auto-py-to-exe and PyInstaller.
This tool allows you to select options and give data to be fed into PyInstaller, that means that a lot of the errors that occur will be raised by PyInstaller, meaning I can't go and change how it works. Typically though, errors brought up in PyInstaller are due to incorrect configuration, thus this post aims to help you fix anything setup incorrectly.
If you have an issue that isn't mentioned in ths post, chuck it in the comments below and I will look into adding it if we can find a solution. The interface uses Chromes app mode and a small Python server in the backend. When the user presses "Convert. To install auto-py-to-exe, make sure you have Python 2. Ideally you will also want Chrome installed but this is not a must; it will open in your default browser and the only thing different will be the interface size.
Wait for this to finish and make sure that the last line contains "Successfully installed auto-py-to-exe" dash some version. You might get a message about your version of pip but you can ignore it. Now to run the project, execute the following in the terminal:. This occurs because the file that was downloaded from PyPI to be installed needs to be built and these tools will build it. Generally the way to fix this would be to install the tools and run it again, but instead you can get a pre-built version.
To do this, go to gevents PyPI page and click "Download files" on the right to bring you to the files that are on PyPI for this project. You will want to find the file that matches your setup and is a. This means the file I will want is gevent At the top of the interface, you are asked for the script location. This is the script you call to run your project, so if your project is one script, put that here, if your project is more than one script, put the script that starts it here.
The inputs outline will become blue if the file exists, otherwise it will be red. Next you need to choose between one-file and one-directory. These are relatively similar but when using one-file with extra files like images or data files you need to modify your script to account for path changes. The difference between these methods and people ignoring the extra step required generally result in the bulk of complaints I get. Under that is a selection of whether you want a console window to appear or not.
Simply if you are developing a GUI application or something that doesn't need the console to appear, use "Window Based". If you do want the console to appear, keep "Console Based Selected" but keep in mind that the script needs to block somewhere otherwise execution will end and the terminal will disappear immediately; a work-around for this is to put input at the end of the script to hold execution until input is provided.
After this you can select an icon for your executable. Make sure that the files are. Next there is a section to add files to your executable that are not Python files.
Since PyInstaller doesn't find extra files like images you need to add them manually. If you're using one-file mode, you'll be provided a link to stackoverflow which tells you how to implement a small wrapper to find the files you added.
I explain why you have to do this towards the bottom of this post including an example; if you do not follow this step errors will occur. Under this is the advanced tab which holds all PyInstallers extra flags as well as where to save the project and setting the maximum recursion depth.
The "Current Command" section tells you what would be called if you wanted to execute this in a terminal and the convert button is under this. If you have any issues with running your script, it may be due to incorrect configuration.Do you have a GitHub project?
Now you can sync your releases automatically with SourceForge and take advantage of both platforms. All Rights Reserved. Permission is granted for personal and Academic use only.
Code or portions of code may not be copied or used without appropriate credit given to author. A very simple, practical clicker. Imitates mouse clicks to where your mouse pointer is. Auto clicks repeatedly using given time interval between clicks. It's portable. Consists of only one file! An autohotkey ahk script file or its compiled exe. Goliath Auto Screen Capture is a free tool for taking rapid-fire screenshots. The user can simply select an area of the screen to capture, then use their computer as usual until ready to end the recording.
Just choose exe files that you dont want to access the internet and this app will do rest of the work for you. With the help of built in powerful compiler, Now you can convert your batch files into pure stand-alone windows executables including your Company name, Copyright info, Version info and embedded resources!Convert PY to EXE Automatically
Unlike other bat to exe solutions, Batch Compiler can handle complex batch scripts and compile batch files easily with the built in Intelli-Parse technology and Debugger.
Introducing a new era of windows Py2Bin is an application for MacOs X The result of the compilation can be execute without the python programe This application is submite under GPL pulic licence If you need som information of if ou have a problem with this application please wrtite to m.
A stand-alone exe that will go out to Java. It will then install both the 32bit and 64 bit versions just in case you need both Then it will remove the install files, and disable the auto update feature including nag. This works on Windows 7, Calibre has the ability to view, convert, edit, and catalog e-books of almost any e-book format.
Issues When Using auto-py-to-exe
New Version! Improved user experience. Easy capture of Paltalk buttons. A small tool program to self time yourself on the popular chat program Paltalk. One exe file only. No installation, just place the program file into a convenient folder.Calibre has the ability to view, convert, edit, and catalog e-books of almost any e-book format. This loot generator was written by myself while I was trying to teach myself python. It's written badly but there are no bugs that I know of and it works as intended.
It's written in python and the. Just run the. It's also good for any other fantacy RPG, or you can create your own csv and txt files for a modern RPG you are running. Needless to say, if you are running Linux and have You can use theses scripts to convert a set of files into a single ressources. If you import this file into your script and use py2exe to compile your script, you will be able to make everything fit inside one.
You can also use py2exe to compile the decompressor into an. It will behave like an auto extractible executable which can create shortcuts. SauceWalk is a freeware.
It consists of 2 parts a local executable walk. The remote agent can be used to identify target files and folders on a live system via The downloadable. A python program that tests the user with different basic math problems.
You seem to have CSS turned off. Please don't fill out this field. Please provide the ad click URL, if possible:. Help Create Join Login. Operations Management. IT Management. Project Management. Services Business VoIP. Resources Blog Articles Deals. Menu Help Create Join Login. Open Source Commercial. WinXP 1 Solaris 1.
Translations Translations English 1 German 1. Status Status Planning 1 Beta 1. Freshness Freshness Recently updated 2.
Calibre is a cross-platform open-source suite of e-book software.Using Python is wonderful. In fact, it so wonderful that you sometimes want other, non-python users to try out your scripts.
You can tell them all day long to go to python. However, most people will ask you why you cannot just make an installer or a. I have made a few executable files myself and will share some ways in how I have done it. Note that I am using Python 3. Occasionally, the packaging does not work without some modification when you are using the latest Python version.
Try using an older Python version if the packaging does not work out of the box. There are a couple of different projects made for creating the executable. Creating an executable with Tkinter can be trickier, as you may need to include additional files as dependencies.
I had been looking for an exe creator like this one. The interface wraps around PyInstaller. The Auto Py to Exe script hosts a webpage and uses Google Chrome in app mode to display the page to the user. The interface is built with Eel. I tried to freeze a basic Tkinter application and it worked flawlessly, converting my script to a single.
I am referring to Aayush code below. First, you create the setup script. Put the script in your Python folder. The build folder is a temporary folder that you can safely delete. You can find Nuitkas manual here. Kay HayenNuitkas creator is on Twitter also.This project allows you to convert python scripts to executables with a simple interface.
The interface uses chromes app mode and lists all possible flags for pyinstaller. The whole idea seems automatic as it cleans up after itself. This application displays a simple interface that allows you to convert py to exe easily. By just selecting the file, if you want it to convert to onefile and if you want a console, you will only need to press convert and wait for the script to do the rest.
The script is built using Eel and uses PyInstaller to convert the script. To have the interface displayed in the images, you will need chrome. If chrome is not installed or --no-chrome is supplied, the default browser will be used. You can run this project locally by following these steps: 1. Execute python -m pip install -r requirements.
A Chrome window in app mode will open with the project running inside. Alternatively you can execute auto-py-to-exe [filename].
This will open up the window with the filename in the script location.
If you need something visual to help you get started, I made a video for the original release of this project ; some things may be different but the same concepts still apply. If you're having issues with the packaged executable or using this tool in general, I recommend you read my blog post on common issues when using auto-py-to-exe. This post covers things you should know about packaging Python scripts and fixes for things that commonly go wrong.
I really wanted to get this project out there so I released a YouTube video demonstrating how to setup and use the interface video above.
To my surprisement the next morning about 7 hours I had more than upvotes which to me was a big thing. I had many replies which I took time to read and reply to. About 44 hours later the post finally lost it's top place on the subreddit and the post is sitting at points with I can't believe how big this got and it means a lot to me when I saw people thanking me for the project.
When the couple of issues came to the Github repo I realised people do care about this and I was quick to fix these. Once again, thank you for the support; I loved making this project. What is this?