I can't run my executable pythpn application - 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: I can't run my executable pythpn application (/thread-14909.html) Pages:
1
2
|
I can't run my executable pythpn application - atlass218 - Dec-23-2018 Hi; I use python 3.6, and my PC is equipped with windows 10 64 bits. for information, my PC is equipped with windows 10 64 bits. I finished my script.py, and I turned it into an executable application by this command : Quote:python setup.py build and I tryed also this other command : Quote:python setup.py bdist_msi 1) for the first case, I have a build folder that was created and that contains my executable application 2) for the second case, I have two folders build, and dist. the stucture of the folder "build" is dispalyed by this picture: in both cases when I run my executable application created, it does not work the file setup.py : import sys from cx_Freeze import setup, Executable # Dependencies are automatically detected, but it might need fine tuning. build_exe_options = {"packages": ["os"], "excludes": ["tkinter"]} # GUI applications require a different base on Windows (the default is for a # console application). base = None if sys.platform == "win64": base = "Win64GUI" setup( name = "cev", version = "0.1", description = "My CEV application!", options = {"build_exe": build_exe_options}, executables = [Executable("cev.py", base=base)])thanks for help RE: I can't run my executable pythpn application - buran - Dec-24-2018 Please, when you cross-post (e.g. on SO or elsewhere), let us know - you don't want to waste the time of people who want to help you, right? RE: I can't run my executable pythpn application - ammy - Dec-24-2018 use pyinstaller instead. you can also check youtube video RE: I can't run my executable pythpn application - atlass218 - Dec-24-2018 but at the internet I read that pyinstaller is only compatible with python 2.7 and not with version 3.X RE: I can't run my executable pythpn application - j.crater - Dec-24-2018 I can assure you it works with Python 3.6 since I have used it. RE: I can't run my executable pythpn application - buran - Dec-24-2018 (Dec-24-2018, 09:41 AM)atlass218 Wrote: pyinstaller is only compatible with python 2.7 and not with version 3.X Don't know where you read it, but it's not true. RE: I can't run my executable pythpn application - atlass218 - Dec-24-2018 I think I confused it with py2exe but when I try to install pyinstaller I have this error : Quote:C:\Users\AHMED\AppData\Local\Programs\Python\Python36>pip install pyinstaller RE: I can't run my executable pythpn application - buran - Dec-24-2018 try again and if you don't succeed - download wheel from Gohlke. Actually - this is the direct link. Then you can install it from the local whl file with pip install PyInstaller‑3.4‑py2.py3‑none‑any.whl
RE: I can't run my executable pythpn application - atlass218 - Dec-24-2018 I downloaded the file "PyInstaller-3.4-py2.py3-none-any.whl", which I put in the folder python36. Then I made in the console command : pip install PyInstaller-3.4-py2.py3-none-any.whl subsequently I had this error Quote:C:\Users\AHMED\AppData\Local\Programs\Python\Python36>pip install PyInstaller-3.4-py2.py3-none-any.whl RE: I can't run my executable pythpn application - buran - Dec-24-2018 upgrade your pip. this should fix the ssl error |