Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Convert py2exe
#1
I need to make this an exe with pyinstaller It's not working for me so what I'm really looking for is for someone to do it for me, I've looked everywhere uninstalled and reinstalled multiple versions of python. All you need to do is copy my code and put it in a py file then type in cmd

pyinstaller --onefile -w myfilename.py





Thanks
if you can do this please dm me
Reply
#2
Is it not better to resolve your issue, so you can do this yourself whenever you want?
Post your code (in code tags) as well as any errors/traceback (in error tags) that you get.
Reply
#3
my code is fine just whenever i try to make it an exe with pyinstaller i get this error

to prove my code is fine the file i am converting in this picture contains just this code

print('hello world')

no errors would exist there

http://imgur.com/VD7qrTt
Reply
#4
Don't post images! Make the effort to copy/paste it.

(May-28-2017, 07:13 AM)daltorya19 Wrote: my code is fine just whenever i try to make it an exe with pyinstaller i get this error

what error?
Reply
#5
(May-28-2017, 05:26 AM)daltorya19 Wrote: pyinstaller --onefile -w myfilename.py
Remove -w
pyinstaller --onefile myfilename.py

Official Pyinstaller work up to Python 3.5
Work for Python 3.6(i have tested for win-10) if use development version.
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip
Reply
#6
it looks like this error is caused by one of two reasons:

1. You installed pyinstaller via pip and your python folder name has spaces in it.

read

https://stackoverflow.com/questions/3180...te-process

Note that this was reported as fixed as of july 2016, so maybe you are using old version of pip and setuptools, so you need to upgrade, uninstall and install pyinstaller

2. you manually renamed the python folder

https://stackoverflow.com/questions/1737...7#17560177
Reply
#7
I tried all of the above and I still have the same problem
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Py2exe Writing UNKNOWN-0.0.0-py3.7.egg-info sarahroxon7 1 908 Apr-20-2022, 08:02 AM
Last Post: VadimCr
  Py2exe and pycryptodome reks2004 5 4,094 Dec-16-2020, 06:42 PM
Last Post: reks2004
  Py2exe Writing UNKNOWN-0.0.0-py3.7.egg-info Rickus 2 3,607 Feb-18-2020, 03:09 PM
Last Post: Rickus
  py2exe failed to compiled gahhon 9 7,365 Mar-04-2019, 03:29 AM
Last Post: gahhon
  py2exe keegan_010 4 4,436 Aug-22-2018, 07:58 AM
Last Post: buran
  How would I combine multiple .py files into one .exe with Py2Exe shlomi27 0 3,066 Aug-20-2018, 10:27 AM
Last Post: shlomi27
  jira-2.0.0.dist causing error with py2exe johnlawlor 1 2,483 Aug-09-2018, 08:27 PM
Last Post: Larz60+
  can not open .exe file generated by py2exe: ImportError: cannot import name _remove_d py2exe 0 2,699 May-22-2018, 09:57 AM
Last Post: py2exe
  trouble with pip and py2exe sylas 12 13,625 Sep-17-2017, 06:38 AM
Last Post: sylas
  Py2EXE: terminal window closes after pressing ENTER peanutbutterjelly 1 5,053 May-06-2017, 07:13 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020