LoginSignup
2
4

More than 5 years have passed since last update.

pyenv環境下のpython3でsmbusを使う

Posted at

pyenv環境下のpython3で

sudo apt-get install python-smbus

を実行してもsmbusがないとエラーが出た.

解決法

pip install smbus2

でsmbusを入れて

import smbus2 as sambas

と使えば,従来通りに実行できる.

2
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
4