okay, so when i move the file onto windows (in another computer) - how can i run it there ? will it show it as .exe ?
the whole purpose of this is to run the program under windows (probably in cmd)
this is the output of when i try to run it:
Output:
tal@tal-HP-Notebook:~/Documents/python_folder$ pyinstaller --onefile try5.py
48 INFO: PyInstaller: 3.6
48 INFO: Python: 3.7.2
49 INFO: Platform: Linux-4.4.0-178-generic-x86_64-with-debian-stretch-sid
50 INFO: wrote /home/tal/Documents/python_folder/try5.spec
52 INFO: UPX is not available.
53 INFO: Extending PYTHONPATH with paths
['/home/tal/Documents/python_folder', '/home/tal/Documents/python_folder']
54 INFO: checking Analysis
54 INFO: Building Analysis because Analysis-00.toc is non existent
54 INFO: Initializing module dependency graph...
56 INFO: Caching module graph hooks...
61 INFO: Analyzing base_library.zip ...
4007 INFO: Caching module dependency graph...
4143 INFO: running Analysis Analysis-00.toc
4158 INFO: Analyzing /home/tal/Documents/python_folder/try5.py
4161 INFO: Processing module hooks...
4161 INFO: Loading module hook "hook-xml.py"...
4452 INFO: Loading module hook "hook-pydoc.py"...
4452 INFO: Loading module hook "hook-encodings.py"...
4525 INFO: Looking for ctypes DLLs
4526 INFO: Analyzing run-time hooks ...
4533 INFO: Looking for dynamic libraries
4957 INFO: Looking for eggs
4958 INFO: Python library not in binary dependencies. Doing additional searching...
Traceback (most recent call last):
File "/home/tal/.local/bin/pyinstaller", line 8, in <module>
sys.exit(run())
File "/home/tal/.local/lib/python3.7/site-packages/PyInstaller/__main__.py", line 114, in run
run_build(pyi_config, spec_file, **vars(args))
File "/home/tal/.local/lib/python3.7/site-packages/PyInstaller/__main__.py", line 65, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "/home/tal/.local/lib/python3.7/site-packages/PyInstaller/building/build_main.py", line 734, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "/home/tal/.local/lib/python3.7/site-packages/PyInstaller/building/build_main.py", line 681, in build
exec(code, spec_namespace)
File "/home/tal/Documents/python_folder/try5.spec", line 17, in <module>
noarchive=False)
File "/home/tal/.local/lib/python3.7/site-packages/PyInstaller/building/build_main.py", line 244, in __init__
self.__postinit__()
File "/home/tal/.local/lib/python3.7/site-packages/PyInstaller/building/datastruct.py", line 160, in __postinit__
self.assemble()
File "/home/tal/.local/lib/python3.7/site-packages/PyInstaller/building/build_main.py", line 478, in assemble
self._check_python_library(self.binaries)
File "/home/tal/.local/lib/python3.7/site-packages/PyInstaller/building/build_main.py", line 568, in _check_python_library
python_lib = bindepend.get_python_library_path()
File "/home/tal/.local/lib/python3.7/site-packages/PyInstaller/depend/bindepend.py", line 945, in get_python_library_path
raise IOError(msg)
OSError: Python library not found: libpython3.7.so.1.0, libpython3.7mu.so.1.0, libpython3.7m.so, libpython3.7m.so.1.0
This would mean your Python installation doesn't come with proper library files.
This usually happens by missing development package, or unsuitable build parameters of Python installation.
* On Debian/Ubuntu, you would need to install Python development packages
* apt-get install python3-dev
* apt-get install python-dev
* If you're building Python by yourself, please rebuild your Python with `--enable-shared` (or, `--enable-framework` on Darwin)
tal@tal-HP-Notebook:~/Documents/python_folder$