# Sudo command not found

**URL:** <https://forum.sunfounder.com/t/sudo-command-not-found/4473>\
**Category:** Learning kit for Raspberry Pi\
**Created:** [March 15, 2026, 1:36pm UTC](https://forum.sunfounder.com/t/sudo-command-not-found/4473 "2026-03-15T13:36:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Otter5104](https://avatars.discourse-cdn.com/v4/letter/o/f05b48/32.png) [@Otter5104](https://forum.sunfounder.com/u/Otter5104)\
**Post date:** [March 15, 2026, 1:36pm UTC](https://forum.sunfounder.com/t/sudo-command-not-found/4473/1 "2026-03-15T13:36:29Z")

</div>

I working on Pi5 1.1.1 Blinking Led and I am at this prompt:

~/raphael-kit/python-pi5 $

I enter this command:

sudo 1.1.1\_BlinkingLed\_zero.py

this is the response:

sudo: 1.1.1\_BlinkingLed\_zero.py command not found

Help !

---

<div class="post-metadata">

**Author:** ![Spf650](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Spf650](https://forum.sunfounder.com/u/Spf650)\
**Post date:** [March 15, 2026, 1:48pm UTC](https://forum.sunfounder.com/t/sudo-command-not-found/4473/2 "2026-03-15T13:48:28Z")

</div>

Not sure where you’ve picked up the \_zero suffix from but the command should be

```auto
sudo python3 1.1.1_BlinkingLed.py

```

---

<div class="post-metadata">

**Author:** ![Spf650](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Spf650](https://forum.sunfounder.com/u/Spf650)\
**Post date:** [March 15, 2026, 1:49pm UTC](https://forum.sunfounder.com/t/sudo-command-not-found/4473/3 "2026-03-15T13:49:52Z")

</div>

Sorry, I didnt see you were running the rpi5 variant. My mistake. Ignore what I said! You’ve simply missed out the python3 command itself

```auto
sudo python3 1.1.1_BlinkingLed_zero.py

```

---

<div class="post-metadata">

**Author:** ![Otter5104](https://avatars.discourse-cdn.com/v4/letter/o/f05b48/32.png) [@Otter5104](https://forum.sunfounder.com/u/Otter5104)\
**Post date:** [March 15, 2026, 2:09pm UTC](https://forum.sunfounder.com/t/sudo-command-not-found/4473/4 "2026-03-15T14:09:22Z")

</div>

There is no files named “python3 1.1.1\_BlinkingLed\_zero.py” under “raphael-kit/python-pi5” directory.  
I see files named such as “1.1.1\_BlinkingLed\_zero.py”.  
I was thinking that the sudo command would execute that file, but I get the response “sudo: 1.1.1\_BlinkingLed\_zero.py command not found”.

---

<div class="post-metadata">

**Author:** ![Spf650](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Spf650](https://forum.sunfounder.com/u/Spf650)\
**Post date:** [March 15, 2026, 2:23pm UTC](https://forum.sunfounder.com/t/sudo-command-not-found/4473/5 "2026-03-15T14:23:55Z")

</div>

Im a bit confused now as to what youve done.

Agreed, there is no file called

```auto
python3 1.1.1_BlinkingLed_zero.py

```

in that directory.

The file to run is simply

```auto
1.1.1_BlinkingLed_zero.py

```

You run this file using the command

```auto
python3

```

The sudo prior command simply raises the privileges to be root. It does not execute anything.

So the full command is the 3 elements as I posted above

```auto
sudo python3 1.1.1_BlinkingLed_zero.py

```

---

<div class="post-metadata">

**Author:** ![Otter5104](https://avatars.discourse-cdn.com/v4/letter/o/f05b48/32.png) [@Otter5104](https://forum.sunfounder.com/u/Otter5104)\
**Post date:** [March 15, 2026, 2:31pm UTC](https://forum.sunfounder.com/t/sudo-command-not-found/4473/6 "2026-03-15T14:31:46Z")

</div>

When I enter the sudo command as you have shown, I get several screens of error messages. Too much to copy manually now. I will have to see if I can find a way to show you all the error messages. I’ll get back to this later…got to go for now.

Thanks for the help

---

<div class="post-metadata">

**Author:** ![Spf650](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Spf650](https://forum.sunfounder.com/u/Spf650)\
**Post date:** [March 15, 2026, 2:34pm UTC](https://forum.sunfounder.com/t/sudo-command-not-found/4473/7 "2026-03-15T14:34:33Z")

</div>

That’s good news! The command is now being found.

You should just be able to copy those error messages from the terminal (shift ctrl-c) and paste into this forum with ctrl-v. If there’s many pages of them, just the last one shown on screen should normally suffice.

---

<div class="post-metadata">

**Author:** ![Otter5104](https://avatars.discourse-cdn.com/v4/letter/o/f05b48/32.png) [@Otter5104](https://forum.sunfounder.com/u/Otter5104)\
**Post date:** [March 15, 2026, 3:58pm UTC](https://forum.sunfounder.com/t/sudo-command-not-found/4473/8 "2026-03-15T15:58:30Z")

</div>

Now, it’s working. Were you able to change some files or setting on my pi5? You said that that pyhton3 command was found: now my Pi5 can find it?

Again thanks.

---

<div class="post-metadata">

**Author:** ![Spf650](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Spf650](https://forum.sunfounder.com/u/Spf650)\
**Post date:** [March 15, 2026, 5:33pm UTC](https://forum.sunfounder.com/t/sudo-command-not-found/4473/9 "2026-03-15T17:33:47Z")

</div>

Im not able to change anything on your rpi5.

However, you told me that you see many errors now, instead of

```auto
command not found 

```

Therefore, the command must now be being found.

---

<div class="post-metadata">

**Author:** ![Otter5104](https://avatars.discourse-cdn.com/v4/letter/o/f05b48/32.png) [@Otter5104](https://forum.sunfounder.com/u/Otter5104)\
**Post date:** [March 16, 2026, 10:56am UTC](https://forum.sunfounder.com/t/sudo-command-not-found/4473/10 "2026-03-16T10:56:04Z")

</div>

Thanks for the help. I’m good, for now.
