0

I am trying to install pyinstaller on ubuntu 18.04. After installation using

pip install pyinstaller

when i run

pyinstaller myscript.py

i get the error

pyinstaller:command not found

I checked this answer but didn't understand it. A step by step clarification would be great.

afsara_ben
  • 542
  • 1
  • 11
  • 30
  • The first answer in your linked thread should work (this is the recommended way to run modules installed with pip). Maybe it does not work for you, because pip is the pip from Python 2 and your python is Python 3. Please add the output of the commands `pip --version` and `python --version` to your question. – Niklas Mohrin Oct 09 '20 at 15:40

2 Answers2

0

What worked for me was -

enter image description here

Running the script: (inside your project folder, open terminal then do -)

pyinstaller --specpath ./dist --distpath ./dist --workpath ./dist --onefile ./src/run.py

afsara_ben
  • 542
  • 1
  • 11
  • 30
0

If you do not want to use another file to install it, you can do this:

name@machine-name:$~ python3 -m PyInstaller myfile.py