Permission Denied when executing python file in linux

前端 未结 3 1105
刺人心
刺人心 2020-12-21 09:52

I am working with my Raspberry Pi 2 B+ and I am using Raspbian. I have a python script located at /home/pi/Desktop/control/gpio.py

When I type /hom

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-21 10:55

    do like this maybe work:
    cd /home/pi/Desktop/control/
    python gpio.py

    Because gpio.py is not a executable file, you should run it by python instead

提交回复
热议问题