You must enable i2c:
- i2c:
sudo raspi-config nonint do_i2c 0
You can optionally run sudo raspi-config
or the graphical Raspberry Pi Configuration UI to enable interfaces.
Stable library from PyPi:
- Just run
sudo pip3 install ltp305
Latest/development library from GitHub:
git clone https://github.com/pimoroni/ltp305-python
cd ltp305-python
sudo ./install.sh