I want to convert .py file into an executable file and run on raspberry pi. I installed pyinstaller
sudo apt-get install pyinstaller
sudo pyinstaller test.py
This command create a test.spec file and dist folder.
cd dist/test
there i got a executable file named test. Now i want to run it
sudo ./test
error: ./test: 1: ./test: Syntax error: "(" unexpected
I install mono
sudo apt-get install mono-complete
sudo mono test.exe
error:
no such file on the directory
then i use
sudo mono test
error shows:
cannot open assembly'test':file does not contain a valid CIL image
How i could solve my problem. I want to convert my code(.py written in idle) into an executable file and run it on my raspberry pi.