You can install psycopg2 the PostgreSQL database adapter for Python using pip by using the below command.
For Python 2.x
pip install psycopg2-binary
For Python 3.x
pip3 install psycopg2-binary

-
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to PIP,
- pip install see the list of all available versions of package
- Fix - E: Package python3-pip has no installation candidate
- Fix: >>> pip install - SyntaxError: invalid syntax
- Python: How to install psycopg2 using pip
- Check If Python pip modules are outdated and New Version is Available
- Update All Outdated Modules/Packages using pip3
- WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
- How to list all versions of Python Modules Available using pip/pip3
- How to install multiple Python Packages at once using pip/pip3 command
- pip/pip3 ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied
- How to upgrade pip/pip3 package installer for Python
- pip install specific version of a Python Package
- Fix: error: legacy-install-failure Python pip/pip3
- Fix Python WARNING: You are using pip version 19 however version 21 is available
More Posts:
- How to install SpaCy (NLP Library) on Mac - Python
- fix fatal: --local can only be used inside a git repository error - Git
- Check Bluetooth is turned on or off on Android device programmatically [Java Code] - Android
- Center align text in TextView Android Programming - Android
- [Android] RuntimeException: Unable to start activity Need BLUETOOTH permission - Android
- Fix - Error:Invalid Gradle JDK configuration found (Android Studio) - Gradle
- SDK Manager: failed to install : Android Studio on Windows - Android-Studio
- The Date Command and its usage [Linux - Unix - macOS] - Linux