You must enable:
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 and dependencies from GitHub:
git clone https://github.com/pimoroni/pa1010d-python
cd pa1010d-python
sudo ./install.sh
Latest/development library and dependencies from GitHub:
git clone https://github.com/pimoroni/pa1010d-python
cd pa1010d-python
sudo ./install.sh --unstable
Stable (library only) from PyPi:
python3 -m pip install pa1010d