0
votes

I have Linux installed and Python 3.5. The program itself is made in Linux but i need to make it executable in windows. I cant see any program that can do this for python 3.5. Please give me some working option. pyinstaller, cx_freeze and py2exe dont work with 3.5 enter image description here

After fighting with depends for some time i got it here: enter image description here Needles to say its not starting the exe...

2
PyInstaller .... supports..... 3.5..... Multiversion: supports Python 2.7 and Python 3.3, 3.4 and 3.5. from their site pyinstaller.org - MooingRawr
Edited my post with one of many errors. I would not be here if it works........ - nephilimrising
so @MooingRawr ....its....not....working with 3.5 - nephilimrising

2 Answers

1
votes

So problem solved. For Python 3.5 after you install pyinstaller via pip you need also to install Microsoft visual C++ Redistributable package x86 2010 and 2015 to cover missing dll-s you need. After that, when .exe is made you need to point the PyQt5 bin folder. So finally my command is this:

C:\Project> "C:\Python35-32\Scripts\pyinstaller.exe" --paths C:\Python32-35\Lib\site-packages\Pyqt5\Qt\bin --onefile --noconsole main.pyw

This wont work without VC_Redistributable packages or even if it does it wont start afterwards, showing errors for missing dll files. This will feed the .exe only the libraries so other files (png,txt) will still have to be in the root folder of the executable.

0
votes

No worries ;)

cx_freeze is currently coming out as version 5.0 for Python 3.5. There is an unstable version of cx_freeze which utilizes a quite hard way to do but here is a GitHub guide to follow > http://cx-freeze.sourceforge.net

As for pyinstaller you can watch this video which should help you > https://www.youtube.com/watch?v=11Q2QADsAEE

I hope this helps, good luck!