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

How to install serial_mock via python pip




serial_mock - mocks serial ports for use with com0com(windows) or socat(*nix), it belongs to Classifiers:

- Environment :: Win32 (MS Windows)
- Operating System :: Microsoft :: Windows
- Operating System :: Microsoft :: Windows :: Windows 7
- Operating System :: Microsoft :: Windows :: Windows 8
- Operating System :: Microsoft :: Windows :: Windows 10
- Operating System :: Microsoft :: Windows :: Windows Vista
- Operating System :: Microsoft :: Windows :: Windows XP
- Operating System :: POSIX :: Linux
- Programming Language :: Python :: 2.6

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



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_serial_mock_env

- Active the virtual environment

test_serial_mock_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_serial_mock_env

- Active the virtual environment

source test_serial_mock_env/bin/active


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

To install serial_mock on Windows(CMD):

py -m pip install serial_mock

To install serial_mock on Unix/macOs:

pip install serial_mock


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

Example:

pip install serial_mock==0.0.2


Please see the version list below table:

VersionReleased dateCommand
serial_mock 0.12017-04-22T06:32:54Windows:

py -m pip install serial_mock==0.1

Unix/macOs:

pip install serial_mock==0.1

serial_mock 0.0.32017-04-22T06:25:37Windows:

py -m pip install serial_mock==0.0.3

Unix/macOs:

pip install serial_mock==0.0.3

serial_mock 0.0.22017-04-19T17:18:13Windows:

py -m pip install serial_mock==0.0.2

Unix/macOs:

pip install serial_mock==0.0.2


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

Download the distribution file from serial_mock-0.1.zip or the specific serial_mock version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_serial_mock_downloaded_file>

On Unix/macOs:

pip install <path_to_serial_mock_downloaded_file>


List distribution:


Project link:

- Homepage
- Download