Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
install pyserial
#1
hi all,

I able to install Pyserial in CMD but still unable to use it. i not sure where i'm go wrong . hope someone can help and share with me.

import time
import serial
 
ser = serial.Serial('COM6', 115200)
  
while True:
 value = ser.readline()
 print(value)
 time.sleep(0.5)
Error:
ModuleNotFoundError Traceback (most recent call last) <ipython-input-3-c45aee60da5c> in <module>() 1 import time ----> 2 import serial 3 4 ser = serial.Serial('COM6', 115200) 5 ModuleNotFoundError: No module named 'serial'
Reply


Messages In This Thread
install pyserial - by neeheng - Jul-13-2019, 04:09 AM
RE: install pyserial - by micseydel - Jul-13-2019, 05:18 PM
RE: install pyserial - by neeheng - Jul-14-2019, 07:07 AM
RE: install pyserial - by snippsat - Jul-14-2019, 09:59 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020