Python Forum
install Pyserial - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: install Pyserial (/thread-19715.html)



install Pyserial - neeheng - Jul-11-2019

I using Python 3.x , and trying using difference code to download / install pyserial. but still fail to install it.

pip install pyserial

python -m pip install pyserial
anyone install before , please kindly advice and help on this


RE: install Pyserial - dev_nirwal - Jul-11-2019

hi neeheng,buddy i think you should update pip by "python -m pip install –upgrade pip " this command ,then you install pyserial by your command.sometimes i had face this issue and i always update pip in cmd.
hope your problem solve by this and if not feel free to private message me.


RE: install Pyserial - neeheng - Jul-11-2019

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'