Using pyinstaller on raspberry pie

Asked 2 years ago, Updated 2 years ago, 48 views

I developed a simple program from Raspberry Pi to Python Make it an executable (exe) and run automatically at boot time, without the need for development tools when clicked You want to make it into a running form. It works well with Python IDE in Raspberry Pi Could not create as executable. In Windows 10, you can install the pyinstaller in Python 3.6 and use it well Master, please make a move.

python raspberry-pi

2022-09-20 21:55

1 Answers

To have it run automatically at boot time.

I think you need to know about Linux (whether it's Debian or RHEL). If you run python test.py (this may vary depending on env) through the shell, I think it will run right away. If you want to run this automatically at boot time, do it in the following way.

Write a shell script, such as /bin/bash, to run Python test.py, register the script as a service, and adjust it to the run level

https://www.sysnet.pe.kr/Default.aspx?mode=2&sub=0&detail=1&pageno=0&wid=11374&rssMode=1&wtype=0

Please refer to the link above for details.


2022-09-20 21:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.