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
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?
© 2024 OneMinuteCode. All rights reserved.