sudo dnf install python-devel postgresql-devel rpm-build
pip install psycopg2
sudo apt install libpq-dev python3-dev
sudo apt install build-essential
sudo apt install libpq-dev
-(option1) Incase you encounter an error installing psycopg2,
try installing the binaries instead:
pip install psycopg2-binary
-or (option2) downgrade the header file libpq5
sudo aptitude install libpq-dev # aptitude is recommended since it is better when it comes to resolving dependencies
accept the solution that recommends downgrading libpq5(usually the second recommended action)
pip install psycopg2
sudo apt-get install -y libpq5 # undo the downgrade
$ pip install psycopg2-binary
Code Example |
---|
Shell :: wsl file location |
Shell :: install wine linux |
Shell :: merge abort |
Shell :: sh check if program exists |
Shell :: unzip tar.gz |
Shell :: wifi adapter not detected ubuntu |
Shell :: set selinux centos |
Shell :: install strapi cli |
Shell :: update gnome shell |
Shell :: adb command to change screen refresh rate |
Shell :: remove port binding windows |
Shell :: nmcli connect wifi |
Shell :: QNAP NAS crontab reset |
Shell :: ls display chmod number |
Shell :: npm install moment |
Shell :: sync show progress |
Shell :: requires pyqt5<5.13, which is not installed. |
Shell :: chkconfig httpd on Amazon Linux 2 AMI |
Shell :: stop git |
Shell :: meteor installation |
Shell :: archlinux install chrome |
Shell :: mac anydesk start at login |
Shell :: tail colorful |
Shell :: change package name flutter |
Shell :: stylelint run |
Shell :: mac kill port 8000 |
Shell :: how to uninstall zsh on mac |
Shell :: linux find files by name |
Shell :: how to find distro name |
Shell :: xcode path mac |