When you know about this project and you want to new install pgsql to support your project or you get trouble as ModuleNotFoundError: No module named "pgsql" or ImportError: cannot import name "pgsql" in your project, let follow this tutorial to install pgsql
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 Windows (CMD):
- Install virtualenv - if you installed it, please ignore
py -m pip install --user virtualenv
- Create a virtual environment
py -m venv test_pgsql_env
- Active the virtual environment
test_pgsql_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_pgsql_env
- Active the virtual environment
source test_pgsql_env/bin/active
To install pgsql on Windows(CMD):
py -m pip install pgsql
To install pgsql on Unix/macOs:
pip install pgsql
Example:
pip install pgsql==1.1
Please see the version list below table:
Version | Released date | Command |
---|---|---|
pgsql 1.2 | 2019-10-27T14:57:54 | Windows: Unix/macOs:
|
pgsql 1.1 | 2014-03-26T17:08:00 | Windows: Unix/macOs:
|
Download the distribution file from pgsql-1.2.tar.gz or the specific pgsql version in the below list of distribution
After that, install by command:
On Windows(CMD):
py -m pip install <path_to_pgsql_downloaded_file>
On Unix/macOs:
pip install <path_to_pgsql_downloaded_file>
List distribution:
Project link:
- Homepage