In python3 under pyenv environment
sudo apt-get install python-smbus
I got an error if there was no smbus.
pip install smbus2
Put smbus in
import smbus2 as sambas
If you use, you can execute it as usual.
Recommended Posts