I have simple python code that prints hello (hello.py
) that I want to make executable using pyinstaller, to run on Linux:
#!/usr/bin/python3.5
#!/usr/bin/env python3.5
def welcome():
print('Welcome')
welcome()
I apply the command pyinstaller hello.py
and I end up with the following exception:
6204 INFO: Building PKG (CArchive) out00-PKG.pkg completed successfully.
6205 INFO: Bootloader /home/nour/.local/lib/python3.5/site-packages/PyInstaller/bootloader/Linux-64bit/run
6206 INFO: checking EXE
6206 INFO: Building EXE because out00-EXE.toc is non existent
6206 INFO: Building EXE from out00-EXE.toc
6206 INFO: Appending archive to ELF section in EXE /home/nour/python/build/hello/hello
Traceback (most recent call last):
File "/home/nour/.local/bin/pyinstaller", line 9, in <module>
load_entry_point('PyInstaller==3.3.1', 'console_scripts', 'pyinstaller')()
<...>
File "/usr/lib64/python3.5/subprocess.py", line 1282, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'objcopy'
What I tried already and did not help:
Any hints?
The problem disappeared without changing anything after a week or so