Python Forum
Python 3.6 Alternatives to Cx_Freeze - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Python 3.6 Alternatives to Cx_Freeze (/thread-23708.html)



Python 3.6 Alternatives to Cx_Freeze - KipCarter - Jan-13-2020

I don't want to seem unappreciative regarding cx_freeze, but I'm between a rock and a hard spot.
  • I've got python code built that does just what it to do.
  • I tried installing PyInstaller only to find that it's not supported on Python 3.6 at this time.
  • I was successful in installing cx_freeze but am disappointed on two fronts. 1) It doesn't have an single file executable option and 2) the frozen copy of my code doesn't work; throwing an error that doesn't appear with the interpreter.
  • The machine I need to run this on can't have Python installed so it must be an executive.

So I'm thinking that maybe if I can get another Py to Exe utility working on my Python 3.6 that it might just work like the raw python code does.

Any suggestions should have a wheel file option, because in the network environment that I'm am working in, the pulls from the internet sources are blocked.

Any suggestions? I need to get this program up and working.

Thanks much!
Kip...


RE: Python 3.6 Alternatives to Cx_Freeze - buran - Jan-13-2020

(Jan-13-2020, 05:24 PM)KipCarter Wrote: I tried installing PyInstaller only to find that it's not supported on Python 3.6 at this time.
PyInstaller works under 3.6:

Quote:PyInstaller’s main advantages over similar tools are that PyInstaller works with Python 2.7 and 3.5—3.7,

Please, elaborate what problem you have with using pyinstaller


RE: Python 3.6 Alternatives to Cx_Freeze - Larz60+ - Jan-14-2020

perhaps visit: https://realpython.com/pyinstaller-python/


RE: Python 3.6 Alternatives to Cx_Freeze - KipCarter - Jan-14-2020

My issues with getting PyInstaller up and going were not PyInstaller itself, but it's dependencies.

The network I work on is highly restrictive when it comes to automated downloads. Each time one of the routines attempts to pull data down the network rules block it. If they don't have whl files for the dependency then I'm stuck.

I managed to get as far as pefile but once I encountered it, I was unable to find a whl file for it or a package that included it. Therefore, that was the end of that path.

I've got Py2exe loaded up, if i can just find some clear information on configuring a setup.py for it I should be home free.


RE: Python 3.6 Alternatives to Cx_Freeze - buran - Jan-14-2020

there is wheel for pefile from Gohlke:
https://www.lfd.uci.edu/~gohlke/pythonlibs/
direct link: https://download.lfd.uci.edu/pythonlibs/q4hpdf1k/pefile-2019.4.18-py2.py3-none-any.whl
I would continue trying to install pyinstaller as py2exe is not updated since 2014

here is the official page as well tutorial on py2exe https://www.py2exe.org/index.cgi/Tutorial
https://www.py2exe.org/index.cgi/FrontPage


RE: Python 3.6 Alternatives to Cx_Freeze - KipCarter - Jan-14-2020

(Jan-14-2020, 11:05 AM)buran Wrote: there is wheel for pefile from Gohlke:
https://www.lfd.uci.edu/~gohlke/pythonlibs/

This is awesome! the pefile failed because it tried to downloads future. but the page has future whl's so I pulled down the appropriate one which installed without an issue, then redid the pefile whl, which installed without a hitch.

I'm going back to try and get my PyInstaller up now. Thanks!

Kip...

(Jan-14-2020, 11:05 AM)buran Wrote: I would continue trying to install pyinstaller as py2exe is not updated since 2014

Buran! You gave me the key... that link got me out of the wood and now I have PyInstaller setup on Python 3.6. I'm going to have great day now getting my single file binary up and going! Whoots!

Dance Dance Dance

Thanks,
Kip...