Jun-08-2020, 01:04 PM
Hey guys so i would i like to make a single python file of mine into an exe
what i do is i save he file in a folder with nothing else and i go to the folder
Then i click on the direction thing and type cmd to open command prompt.
i then type pyinstaller --onefile -w main.py
it comes up with this
I am super stuck as it makes the dist, build and main.text files but when i click on them there is nothing in em.
Can someone help? Thanks!
what i do is i save he file in a folder with nothing else and i go to the folder
Then i click on the direction thing and type cmd to open command prompt.
i then type pyinstaller --onefile -w main.py
it comes up with this
Error:269 INFO: PyInstaller: 3.6
270 INFO: Python: 3.8.3
271 INFO: Platform: Windows-10-10.0.18362-SP0
274 INFO: wrote C:\Users\mians\main.spec
277 INFO: UPX is not available.
Traceback (most recent call last):
File "c:\users\mians\appdata\local\programs\python\python38-32\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\mians\appdata\local\programs\python\python38-32\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\mians\AppData\Local\Programs\Python\Python38-32\Scripts\pyinstaller.exe\__main__.py", line 9, in <module>
File "c:\users\mians\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\__main__.py", line 114, in run
run_build(pyi_config, spec_file, **vars(args))
File "c:\users\mians\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\__main__.py", line 65, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "c:\users\mians\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\build_main.py", line 734, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "c:\users\mians\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\build_main.py", line 681, in build
exec(code, spec_namespace)
File "C:\Users\mians\main.spec", line 6, in <module>
a = Analysis(['main.py'],
File "c:\users\mians\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\build_main.py", line 191, in __init__
raise ValueError("script '%s' not found" % script)
ValueError: script 'C:\Users\mians\main.py' not found
but in the cmd promt color. I am super stuck as it makes the dist, build and main.text files but when i click on them there is nothing in em.
Can someone help? Thanks!