After upgrading Raspbian Wheezy's Python from pyenv to 2.7.9, smbus was no longer available

Asked 2 years ago, Updated 2 years ago, 17 views

Thank you for your help.

When I installed smbus using https://pypi.python.org/pypi/smbus-cffi when Python 2.3.7 was installed by default, I was able to use smbus successfully, but after installing pyenv into Python 2.7.9, ImportError: No module named smbus.I get the same error when I install it again using the same procedure.

If you use this (https://github.com/Azelphur/pyPushBullet), you will be warned to upgrade Python, so I really want to put in 2.7.9 to prevent it from coming out.Could you lend me your wisdom?Thank you for your cooperation.

python

2022-09-29 22:04

1 Answers

 apt-cache search python-smbus

When I ran , the following two lines appeared.

 python-smbus-Python bindings for Linux SMBus access through i2c-dev
pypy-smbus-cffi-This Python module allowances SMBus access through the I2C/dev

The second line starts with "pypypy" instead of "pypi", is it relevant?


2022-09-29 22:04

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.