On 1/04/2020 11:56 am, Mike Dewhirst wrote:
> On 1/04/2020 10:53 am, Umar Abdulsattar wrote:
>> Hello fellows currently i am learning django and try to build and
>> single webpage and also try to connect with postgresql but using
>> adopter psycopg2 i face some problems like i find this error
>>
>> " File "C:\Program Files
>> (x86)\Python37-32\lib\site-packages\django\db\backends\postgresql\base.py",
>> line 24, in <module>
>> raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)
>> django.core.exceptions.ImproperlyConfigured: Error loading psycopg2
>> module: No module named 'psycopg2'"
>
> You need to install the psycopg2 module. For Windows you need a
> pre-compiled binary. In your case it looks like the 32-bit version.
>
> Visit the very generous Christophe Gohlke's page of pre-compiled
> binary install kits for Windows at ..
>
>
https://www.lfd.uci.edu/~gohlke/pythonlibs/
The next step is to install it. Try this ...
... where %USERPROFILE% is (usually) substituted with your Windows home
directory. In my case it is C:\Users\Mike