Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install escpos via python pip




escpos - Python library to manipulate ESC/POS Printers, it belongs to Classifiers:

- License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
- Topic :: Printing

When you know about this project and you want to new install escpos to support your project or you get trouble as ModuleNotFoundError: No module named "escpos" or ImportError: cannot import name "escpos" in your project, let follow this tutorial to install escpos



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_escpos_env

- Active the virtual environment

test_escpos_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_escpos_env

- Active the virtual environment

source test_escpos_env/bin/active


Step 2: OK, now, let flow below content to start the installation escpos

To install escpos on Windows(CMD):

py -m pip install escpos

To install escpos on Unix/macOs:

pip install escpos


Step 3: If you want to install a specific escpos version, add ==<escpos version> to the end command line

Example:

pip install escpos==1.1


Please see the version list below table:

VersionReleased dateCommand
escpos 1.92021-05-04T21:51:30Windows:

py -m pip install escpos==1.9

Unix/macOs:

pip install escpos==1.9

escpos 1.82020-12-09T01:55:18Windows:

py -m pip install escpos==1.8

Unix/macOs:

pip install escpos==1.8

escpos 1.72020-12-09T01:50:01Windows:

py -m pip install escpos==1.7

Unix/macOs:

pip install escpos==1.7

escpos 1.62019-01-11T14:47:50Windows:

py -m pip install escpos==1.6

Unix/macOs:

pip install escpos==1.6

escpos 1.52018-06-01T14:46:09Windows:

py -m pip install escpos==1.5

Unix/macOs:

pip install escpos==1.5

escpos 1.4.22018-06-01T14:43:17Windows:

py -m pip install escpos==1.4.2

Unix/macOs:

pip install escpos==1.4.2

escpos 1.42018-06-01T14:20:52Windows:

py -m pip install escpos==1.4

Unix/macOs:

pip install escpos==1.4

escpos 1.12020-12-09T01:45:25Windows:

py -m pip install escpos==1.1

Unix/macOs:

pip install escpos==1.1


Step 4: Otherwise, you can install escpos from local archives:

Download the distribution file from escpos-1.9.tar.gz or the specific escpos version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_escpos_downloaded_file>

On Unix/macOs:

pip install <path_to_escpos_downloaded_file>


List distribution:

- escpos-1.1.tar.gz (python version >=3.5)
- escpos-1.4.tar.gz
- escpos-1.4.2.tar.gz
- escpos-1.5.tar.gz
- escpos-1.6.tar.gz
- escpos-1.7.tar.gz (python version >=3.5)
- escpos-1.8.tar.gz (python version >=3.5)
- escpos-1.9-py3.8.egg (python version >=3.5)
- escpos-1.9.tar.gz (python version >=3.5)


Project link:

- Homepage
- Download
- Bug Tracker
- Documentation
- Release Notes