1. Open the configuration file
sudo nano /boot/config.txt
Open the following options
"dtparam=i2c_arm=on"
ctrl + o Save
ctrl + x to exit
2. Refresh Profile
sudo raspi-config
3. Open the Options I2c
4. Restart
5. Run again
reference: