Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
install Pyserial
#3
Thank Dev_nirwal,

i able to update the PIP and install Pyserial in cmd. but i still fail to import serial .
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-11-2019, 01:27 PM
RE: install Pyserial - by dev_nirwal - Jul-11-2019, 02:14 PM
RE: install Pyserial - by neeheng - Jul-11-2019, 03:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to install "pip install pyserial" Joni_Engr 2 2,637 Aug-09-2021, 08:35 AM
Last Post: Joni_Engr
  Failed attempt to install pyserial skeeve 4 7,201 Nov-07-2017, 05:08 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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