Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pyinstaller command not found

I am using Ubuntu on VirtualBox. How do I add pyinstaller to the PATH?

The issue is when I say

pyinstaller file.py

it says pyinstaller command not found

It says it installed correctly, and according to other posts, I think it has, but I just can't get it to work. I ran:

pip install pyinstaller

and

pyinstaller file.py 

but it won't work. I think I need to add it to the shell path so Linux knows where to find it.

pip show pyinstaller works.

like image 450
Eric Smith Avatar asked Dec 16 '18 01:12

Eric Smith


2 Answers

You can use the following command if you do not want to create additional python file.

python -m PyInstaller myscript.py
like image 161
CodingTheHellOutOfStuff Avatar answered Oct 06 '22 17:10

CodingTheHellOutOfStuff


Come across the same issue today. In my case, pyinstaller was sitting in ~/.local/bin and this path was not in my PATH environment variable.

like image 32
vincent.voyage Avatar answered Oct 06 '22 19:10

vincent.voyage