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

How to install py-postgresql via python pip




py-postgresql - PostgreSQL driver and tools library., it belongs to Classifiers:

- License :: OSI Approved :: Attribution Assurance License
- License :: OSI Approved :: Python Software Foundation License
- Topic :: Database

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



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_py-postgresql_env

- Active the virtual environment

test_py-postgresql_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_py-postgresql_env

- Active the virtual environment

source test_py-postgresql_env/bin/active


Step 2: OK, now, let flow below content to start the installation py-postgresql

To install py-postgresql on Windows(CMD):

py -m pip install py-postgresql

To install py-postgresql on Unix/macOs:

pip install py-postgresql


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

Example:

pip install py-postgresql==0.8.0


Please see the version list below table:

VersionReleased dateCommand
py-postgresql 1.2.22020-09-25T21:22:24Windows:

py -m pip install py-postgresql==1.2.2

Unix/macOs:

pip install py-postgresql==1.2.2

py-postgresql 1.2.12016-12-29T09:57:05Windows:

py -m pip install py-postgresql==1.2.1

Unix/macOs:

pip install py-postgresql==1.2.1

py-postgresql 1.1.02012-10-08T22:39:04Windows:

py -m pip install py-postgresql==1.1.0

Unix/macOs:

pip install py-postgresql==1.1.0

py-postgresql 1.0.42012-04-30T05:59:36Windows:

py -m pip install py-postgresql==1.0.4

Unix/macOs:

pip install py-postgresql==1.0.4

py-postgresql 1.0.32011-10-17T15:46:14Windows:

py -m pip install py-postgresql==1.0.3

Unix/macOs:

pip install py-postgresql==1.0.3

py-postgresql 1.0.22010-09-19T18:30:13Windows:

py -m pip install py-postgresql==1.0.2

Unix/macOs:

pip install py-postgresql==1.0.2

py-postgresql 1.0.12010-04-25T11:29:33Windows:

py -m pip install py-postgresql==1.0.1

Unix/macOs:

pip install py-postgresql==1.0.1

py-postgresql 1.0.02010-03-29T08:13:14Windows:

py -m pip install py-postgresql==1.0.0

Unix/macOs:

pip install py-postgresql==1.0.0

py-postgresql 0.9.32010-01-04T09:11:23Windows:

py -m pip install py-postgresql==0.9.3

Unix/macOs:

pip install py-postgresql==0.9.3

py-postgresql 0.9.22009-12-16T20:34:48Windows:

py -m pip install py-postgresql==0.9.2

Unix/macOs:

pip install py-postgresql==0.9.2

py-postgresql 0.9.12009-08-12T15:45:51Windows:

py -m pip install py-postgresql==0.9.1

Unix/macOs:

pip install py-postgresql==0.9.1

py-postgresql 0.9.02009-06-14T11:04:00Windows:

py -m pip install py-postgresql==0.9.0

Unix/macOs:

pip install py-postgresql==0.9.0

py-postgresql 0.8.22009-06-14T11:03:45Windows:

py -m pip install py-postgresql==0.8.2

Unix/macOs:

pip install py-postgresql==0.8.2

py-postgresql 0.8.12009-05-01T04:53:38Windows:

py -m pip install py-postgresql==0.8.1

Unix/macOs:

pip install py-postgresql==0.8.1

py-postgresql 0.8.02009-04-03T22:59:00Windows:

py -m pip install py-postgresql==0.8.0

Unix/macOs:

pip install py-postgresql==0.8.0


Step 4: Otherwise, you can install py-postgresql from local archives:

Download the distribution file from py-postgresql-1.2.2.tar.gz or the specific py-postgresql version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_py-postgresql_downloaded_file>

On Unix/macOs:

pip install <path_to_py-postgresql_downloaded_file>


List distribution:


Project link:

- Homepage