Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pyinstaller: error: the following arguments are required: scriptname

i am trying to make a simple executable file using pyinstaller. by following the steps given in link blow.

[https://datatofish.com/executable-pyinstaller/]

but at step 5 i am getting the error for using command "pyinstaller --onefile -main"

pyinstaller: error: the following arguments are required: scriptname

my file name is main and it containt only one line print("hello world")

like image 467
Ajay Kumar Chawla Avatar asked Dec 07 '25 08:12

Ajay Kumar Chawla


1 Answers

As the error suggests, you are missing the file name. try doing it like this.

pyinstaller --onefile main.py

like image 167
Peura Avatar answered Dec 09 '25 21:12

Peura