i2cscan.py command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
i2cscan.py: command not found
or when using sudo you get the following error message
sudo: i2cscan.py: command not found
Solutions to i2cscan.py: command not found
How To Fix i2cscan.py: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu i2cscan.py is provided by python3-ftdi package.
python3-ftdi is:
Suported FTDI devices include: UART and GPIO bridges FT232R (single port, 3Mbps) FT230X/FT231X/FT234X/ (single port, 3Mbps) UART, GPIO and multi-serial protocols (SPI, I2C, JTAG) bridges FT2232C/D (dual port, clock up to 6 MHz) FT232H (single port, clock up to 30 MHz) FT2232H (dual port, clock up to 30 MHz) FT4232H (quad port, clock up to 30 MHz)
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-ftdi
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-ftdi.
sudo apt -y install python3-ftdi
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-ftdi
Summary
In this tutorial we learn how to fix i2cscan.py command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.