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

How to install pg-extras via python pip




pg-extras - Python PostgreSQL database performance insights. Locks, index usage, buffer cache hit ratios, vacuum stats and more., it belongs to Classifiers:

- Topic :: Database

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



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_pg-extras_env

- Active the virtual environment

test_pg-extras_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_pg-extras_env

- Active the virtual environment

source test_pg-extras_env/bin/active


Step 2: OK, now, let flow below content to start the installation pg-extras

To install pg-extras on Windows(CMD):

py -m pip install pg-extras

To install pg-extras on Unix/macOs:

pip install pg-extras


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

Example:

pip install pg-extras==0.0.1


Please see the version list below table:

VersionReleased dateCommand
pg-extras 0.1.42021-02-13T22:19:33Windows:

py -m pip install pg-extras==0.1.4

Unix/macOs:

pip install pg-extras==0.1.4

pg-extras 0.1.32020-10-08T08:33:34Windows:

py -m pip install pg-extras==0.1.3

Unix/macOs:

pip install pg-extras==0.1.3

pg-extras 0.1.22020-10-07T16:15:54Windows:

py -m pip install pg-extras==0.1.2

Unix/macOs:

pip install pg-extras==0.1.2

pg-extras 0.1.02020-10-07T12:35:22Windows:

py -m pip install pg-extras==0.1.0

Unix/macOs:

pip install pg-extras==0.1.0

pg-extras 0.0.52020-10-07T16:15:23Windows:

py -m pip install pg-extras==0.0.5

Unix/macOs:

pip install pg-extras==0.0.5

pg-extras 0.0.42020-10-07T12:49:54Windows:

py -m pip install pg-extras==0.0.4

Unix/macOs:

pip install pg-extras==0.0.4

pg-extras 0.0.32020-10-07T12:42:27Windows:

py -m pip install pg-extras==0.0.3

Unix/macOs:

pip install pg-extras==0.0.3

pg-extras 0.0.22020-10-07T12:35:21Windows:

py -m pip install pg-extras==0.0.2

Unix/macOs:

pip install pg-extras==0.0.2

pg-extras 0.0.12020-10-05T22:18:25Windows:

py -m pip install pg-extras==0.0.1

Unix/macOs:

pip install pg-extras==0.0.1


Step 4: Otherwise, you can install pg-extras from local archives:

Download the distribution file from pg-extras-0.1.4.tar.gz or the specific pg-extras version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_pg-extras_downloaded_file>

On Unix/macOs:

pip install <path_to_pg-extras_downloaded_file>


List distribution:


Project link:

- Homepage