Use smbus with python3 under pyenv environment

In python3 under pyenv environment

sudo apt-get install python-smbus

I got an error if there was no smbus.

Solution

pip install smbus2

Put smbus in

import smbus2 as sambas

If you use, you can execute it as usual.

Recommended Posts

Use smbus with python3 under pyenv environment
Use multiple versions of python environment with pyenv
Use Python installed with pyenv for PL / Python execution environment
Use Python in pyenv with NeoVim
[Pyenv] Building a python environment with ubuntu 16.04
[Ubuntu 18.04] Python environment construction with pyenv + pipenv
Build a python virtual environment with pyenv
[Python] Use JSON with Python
Use mecab with Python3
Use DynamoDB with Python
Use Python 3.8 with Anaconda
Use python with docker
Python environment with docker-compose
Install python with pyenv
Virtual environment with Python 3.6
Build python environment with pyenv on EC2 (ubuntu)
Building an Anaconda environment for Python with pyenv
python development environment -use of pyenv and virtualenv-
How to use tkinter with python in pyenv
Use Python in Anaconda environment with VS Code
Use Trello API with python
Use Anaconda in pyenv environment
Install Python environment with Anaconda
Manage python environment with virtualenv
Use Twitter API with Python
Use TUN / TAP with Python
Build python3 environment with ubuntu 16.04
Prepare python3 environment with Docker
Build python environment with direnv
Reinstall python with pyenv with -fPIC
Python environment construction under Windows7 environment
I want to use mkl with numpy and scipy under pyenv + poetry environment
python with pyenv and venv
Use subsonic API with python3
Use AWS SDK for Python (boto) under Proxy environment
Use python installed with Pyenv with Sublime REPL of Sublime Text 3
Get a clean Python development environment with pyenv + pipx + Poetry
Build a python environment with pyenv (OS X El Capitan 10.11.3)
Build a Python environment with WSL + Pyenv + Jupyter + VS Code
Python: How to use async with
Get started with Python! ~ ① Environment construction ~
Use PointGrey camera with Python (PyCapture2)
Use vl53l0x with Raspberry Pi (python)
Build python virtual environment with virtualenv
Setup modern Python environment with Homebrew
Set python compile options with pyenv
Build Mysql + Python environment with docker
[Python] Use Basic/Digest authentication with Flask
Use NAIF SPICE TOOLKIT with Python
Create a virtual environment with Python!
Python environment construction (pyenv, anaconda, tensorflow)
Building a virtual environment with Python 3
Use rospy with virtualenv in Python3
Python environment construction (pyenv + poetry + pipx)
Unable to install Python with pyenv
How to use FTP with Python
Use Windows 10 speech synthesis with Python
Python3 environment construction with pyenv-virtualenv (CentOS 7.3)
Use OpenCV with Python 3 in Window
pytorch @ python3.8 environment construction with pipenv
Use PostgreSQL with Lambda (Python + psycopg2)