Operation check
CentOS 6.5
RaspberryPi2 + raspbian
151114a.py
import serial
import time
import socket
def main():
print "hello"
if __name__ == '__main__':
main()
When I try to run the above script on CentOS, it looks like this: No error occurs in RPi2. I don't remember if I installed the corresponding package on RPi2.
result
[toLearn]$ python 151114a.py
Traceback (most recent call last):
File "151114a.py", line 1, in <module>
import serial
ImportError: No module named serial
SO describes how to handle it on Ubuntu.
# yum install python3-serial
I tried to execute, but it becomes No package python3-serial available
.
Recommended Posts