The Wayback Machine - https://web.archive.org/web/20240706020125/https://www.geeksforgeeks.org/how-to-install-python-serial-package-on-linux/
Open In App

How to Install ‘Python-Serial’ package on Linux?

Last Updated : 14 Feb, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

PySerial is a Python library. This library provides good support for serial connections (“RS-232”) over a variety of different devices like old-style serial ports, Bluetooth dongles, infra-red ports, and so on. PySerial package encapsulates the access for the serial port. So in this article, we will be installing the PySerial package in Python on Linux operating system.

Installing PySerial package on Linux using PIP

Requirements:

  1. Python3
  2. Python3-pip

To install the PySerial package in Linux we have to follow the following steps:

Step 1: Install the latest version of Python3 on Linux Machine using the following command in the terminal:

sudo apt-get install python3

Installing-Python3

Step 2: Now, using the following command we install the pip module which is required to install and manage all the packages of Python3:

sudo apt install python3-pip

Installing-pip

Step 3: Using the following command we install the PySerial package:

sudo pip3 install pyserial

Installing-PySerial-package

Verifying PySerial package installation on Linux using PIP

To verify if the PySerial package has been successfully installed in your system run the below command in Terminal:

python3 -m pip show pyserial

You’ll get the following output if the installation is completed successfully in your system.

Verifying-PySerial-package-installation



Similar Reads

How to Install Python-pickle package on Linux?
Python pickle package is used for serializing and de-serializing a Python object structure. Any object in Python can be pickled so that it can be stored on the local disk. What pickle does is that it “serializes” the object first before writing it to a file. Pickling is a way to transform a python object (list, dict, etc.). So, in this article, we
2 min read
How to Install Python RSA Package on Linux?
Python-RSA is an RSA implementation written entirely in Python. According to PKCS#1 version 1.5, it provides encryption and decryption, signing and checking signatures, and key creation. It can be used both on the command line and as a Python library. Installing Python RSA on Linux:Method 1: Using pip to install Python RSA Package Follow the below
2 min read
How to Install python 'bottle package' on Linux?
py-bottle is a lightweight micro-framework for developing small web apps and it supports request dispatching (Routes) with URL parameter support, templates, a built-in HTTP Server, and adapters for several third-party WSGI/HTTP-server and template engines are all included in a single file with no dependencies except the Python standard library. In
2 min read
How to Install 'Python-pexpect' package on Linux?
Pyexpect package in Python. This package is used to allow concise assertions which generate predictable and good error messages. It is a Python Exception library. This package is cross-platformed and is available on the Windows, Linux, and macOS operating systems. So in this article, we will be installing the Pyexpect package in Python on Linux ope
1 min read
How to Install 'Python-VPython' package on Linux?
VPython package in python makes it easy to construct passable 3D displays and animations, even for those with limited programming experience. Because it is based on Python3, it also has much to offer for experienced programmers and researchers. This package permits users to create objects such as spheres and cones in 3D space and displays these obj
2 min read
How to Install Python-send2trash package on Linux?
Send2Trash in Python is a small package that sends files to the Trash (or Recycle Bin) natively and on all platforms like Windows, Linux, and macOS. Rather than deleting files, permanently this package sends the files in the trash box. So, in this article, we will be installing the Send2Trash package in Python on Linux operating system. Installing
1 min read
How to Install Python-numba package on Linux?
Numba package translates Python functions to optimized machine code at runtime using the industry-standard LLVM compiler library. Numba-compiled numerical algorithms in Python can approach the rates of C or FORTRAN. So, in this article, we will be installing the Numba package in Python on Linux operating system. Installing Numba package on Linux us
1 min read
How to Install Python-collective.taxonomy package on Linux?
Taxonomy is the "discipline of defining groups on the basis of shared features and assigning names to those groups. Each group is given a rank and groups of a given rank can be aggregated to form a supergroup of higher rank and thus create a hierarchical classification". In this article, we will be installing the Collective.taxonomy package in Pyth
1 min read
How to Install Python-openpyxl package on Linux?
Openpyxl is a Python library for reading and writing Excel (with extension xlsx/xlsm/xltx/xltm) files. The openpyxl permits the Python program to read and modify Excel files. Using the Openpyxl module, these tasks can be done very efficiently and simply. So, in this article, we will be installing the Openpyxl package on Linux operating system using
1 min read
How to Install Python-pymarc package on Linux?
Pymarc is a python package for working with bibliographic data encoded in MARC21. Pymarc provides an API for reading, writing, and revising MARC records. It was mostly designed to be an emergency eject seat, forgetting your data assets out of MARC and into some kind of more rational representation. In this article, we will be installing the Pymarc
2 min read