-1

I want to install pyserial for python, but I don't know how. I have tried stuff like pip, but it doesn't recognise the install command. How do I install it?

MrSam123
  • 21
  • 2
  • 3

3 Answers3

1

First you have to install pip follow this link .Then you can use pip install pyserial

Or you can download pyserial from gituhub and run python setup.py install

Community
  • 1
  • 1
Himanshu dua
  • 2,075
  • 1
  • 12
  • 25
0

How about your python version? The default version of python is 2.x. If you want to use python 3 then install it with pyenv to control your python version.

I think it would be easier for you to solve this problem if you are using windows. Simple install python3 and pip is automatically there. All you need to do is

pip install pyserial

or

pip3 install pyserial

About how to install python3 on windows:

install python3 on windows

Good luck!

daiyanze
  • 95
  • 7
-2

in terminal use python -m pip install 'packagename'

in python shell try

import pip
pip.main(['install','pyserial'])

or download the module and use python setup.py pyserial

( How to manually install a pypi module without pip/easy_install? )

Community
  • 1
  • 1
ralf htp
  • 8,134
  • 3
  • 19
  • 30