0👍
psycopg2
is a wrapper around the libpq
C library, and so it requires that library (plus other pre-requisites) to be installed before you can successfully run pip install psycopg2
. The errors you see is probably related to that.
There’s an alternative, which is to use the psycopg2-binary
wheel package, which comes pre-packaged with its own version of C libraries (including libpq
), meaning you don’t need to go through all the pre-requisite steps.
$ pip install psycopg2-binary
The only cavaet is that psycopg2-binary
is not recommended to be used in production environments.
- [Django]-Django template How to Convert numbers to Words
- [Django]-Weird behavior of Django translation of one word in plural and singular form
- [Django]-Youtube Plugin for Django Ckeditor Updated
- [Django]-Django queryset filter empty JSONField
- [Django]-Implement regex in django template
- [Django]-Cannot assign must be a instance Django
- [Django]-Django Currency Conversion
- [Django]-Using Constants in Settings.py
- [Django]-Python conditionally round up numbers
Source:stackexchange.com