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

How to install pgmock via python pip




pgmock - A library for mocking Postgres queries, it belongs to Classifiers:

- Topic :: Internet :: WWW/HTTP :: Dynamic Content

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



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_pgmock_env

- Active the virtual environment

test_pgmock_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_pgmock_env

- Active the virtual environment

source test_pgmock_env/bin/active


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

To install pgmock on Windows(CMD):

py -m pip install pgmock

To install pgmock on Unix/macOs:

pip install pgmock


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

Example:

pip install pgmock==1.3.0


Please see the version list below table:

VersionReleased dateCommand
pgmock 1.3.72020-09-25T06:59:56Windows:

py -m pip install pgmock==1.3.7

Unix/macOs:

pip install pgmock==1.3.7

pgmock 1.3.52020-09-25T04:46:10Windows:

py -m pip install pgmock==1.3.5

Unix/macOs:

pip install pgmock==1.3.5

pgmock 1.3.42020-04-18T04:42:44Windows:

py -m pip install pgmock==1.3.4

Unix/macOs:

pip install pgmock==1.3.4

pgmock 1.3.32018-08-22T18:55:40Windows:

py -m pip install pgmock==1.3.3

Unix/macOs:

pip install pgmock==1.3.3

pgmock 1.3.22018-07-31T19:36:04Windows:

py -m pip install pgmock==1.3.2

Unix/macOs:

pip install pgmock==1.3.2

pgmock 1.3.12018-03-29T20:54:20Windows:

py -m pip install pgmock==1.3.1

Unix/macOs:

pip install pgmock==1.3.1

pgmock 1.3.02018-03-29T20:39:39Windows:

py -m pip install pgmock==1.3.0

Unix/macOs:

pip install pgmock==1.3.0


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

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

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_pgmock_downloaded_file>

On Unix/macOs:

pip install <path_to_pgmock_downloaded_file>


List distribution:


Project link:

- Homepage