micropython command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
micropython: command not found
or when using sudo you get the following error message
sudo: micropython: command not found
Solutions to micropython: command not found
How To Fix micropython: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu micropython is provided by micropython package.
micropython is:
The Unix port of MicroPython allows testing of programs intended for microcontrollers on the local Debian host machine (except for hardware-specific parts). It can also be used as another, tiny but mostly compatible, Python 3 runtime for small scripts (but it comes with FFI and JNI support). This port uses optimised assembly code on ARM/Thumb, MIPS, i386 and amd64, and setjmp/longjmp-based fallback code on all other architectures.
To fix this problem, we can install more using the command below.
sudo apt-get -y install micropython
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install micropython.
sudo apt -y install micropython
Or if you have aptitude installed you can use the following command.
sudo aptitude install micropython
Summary
In this tutorial we learn how to fix micropython command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.