Importing a module - Raspberry Pi Forums


i needed install minimalmodbus use sensors, followed vendors instruction,

code: select all

sudo pip install minimalmodbus
works fine, minimalmodbus seems available in python2. if try script in python3 "importerror: no module named 'minimalmodbus'.
why module available python2, how make available python3.
thought minimalmodbus ok both versions.
thanks

use pip3 instead of pip install it.
set python 3


raspberrypi



Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'