问题描述
我在 VScode 上使用 Pymakr 对 Pycom L01 进行编程,该 Pycom L01 连接到多个传感器。
我正在尝试使用 smbus2 库,但我无法导入它。
我创建了一个 python 虚拟环境并使用“pip install smbus2”安装它,但是当我尝试上传草图时,输出是:
Traceback (most recent call last):
File "main.py",line 4,in <module>
File "/flash/lib/bmp280.py",line 3,in <module>
ImportError: no module named 'smbus2'
Pycom MicroPython 1.18.2.r1 [v1.8.6-849-e0fb68e] on 2018-12-08; LoPy with ESP32
Type "help()" for more information.
谁能帮助我?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)