Django error for psycopg2 ImportError: DLL load failed

importerror: dll load failed: the specified module could not be found.
psycopg
psycopg2-binary
raise improperlyconfigured("error loading psycopg2 module: %s" % e)
from _sqlite3 import * importerror: dll load failed: the specified module could not be found
importerror: dll load failed while importing qtcore the specified procedure could not be found
win-psycopg
psycopg2 django

Hi I am getting this error while I am trying to run syncdb in my virtual environment.

If I copy psycopg2 folder to my project folder (where I have my manage.py and settings.py) then this error disappears. But I still get this error when the code is pushed to heroku.

I have referred to many online materials but wasn't very lucky.

File "c:\Users\mayayadav\anteus\venv\lib\site-packages\psycopg2-2.4.5-py2.7-wi
  n32.egg\psycopg2\__init__.py", line 67, in <module>
    from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: DLL load failed: The specified module could not be found. (venv)

I had the same problem on Windows, The way i get it working was to install psycopg2 from:

http://www.stickpeople.com/projects/python/win-psycopg/

And doing it this way it's recomended here http://initd.org/psycopg/install/

Python 3.8: ImportError: DLL load failed while importing , See this comment I get this error when trying to import psycopg2 in Python Python 3.8: ImportError: DLL load failed while importing _psycopg: The \site-​packages\django\contrib\postgres\apps.py", line 4, in <module> from  ImportError: DLL load failed : - when trying to import psycopg2 library – MohitC Apr 26 at 17:22 No this is not the answer that worked out. @MohitC – Nikky Apr 26 at 17:53

In the case, where the install binaries are not up to date (as it happened today: latest Python is 3.4 and PostgresSQL - 9.3, while latest avaiable are 3.3 and 9.2.6 respectively), it is enough to add the PostgresSQL binary path (e.g. C:\Program Files\PostgreSQL\9.3\bin) to the path variable.

Note: you need to restart your command line to get it working.

ImportError: DLL load failed: The specified module could , The error indicates it is unable to load the psycopg DLL. Based upon what I believe your file structure is, the file should exist here: C:\\venv\lib\  Python 3.8: ImportError: DLL load failed while importing _psycopg: The specified module could not be found. #1014 BrendanMartin opened this issue Nov 18, 2019 · 6 comments Comments

2019 Update

I encountered the same issue with Python 3.8 and psycopg2 2.8.3 and 2.8.4. Apparently psycopg2 doesn't work with Python 3.8 yet (understandably, since 3.8 released very recently). The fix for me was to go back to using Python 3.7.

Win10, VS 2015, Py 3.5.1, ImportError: DLL load failed: The specified module could not be found. I get this error when my project tries to import psycopg. resolve the problem from speaking to people in #python or #django on freenode, and I've tried  Try to do whatever thing you do to get the ImportError, receive: ImportError: DLL load failed while importing _psycopg: The specified module could not be found. upgrade pip to 20.0.2 through PyCharm -> Settings -> Project Interpreter. It will tell you that 'Upgrade packages failed', it's wrong it really did upgrade

Django error for psycopg2 ImportError: DLL load failed, Win10, VS 2015, Py 3.5.1 - DLL load failed #407. Closed _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID ImportError: DLL load failed: Das error LNK2001: Build fails on Windows with Python 3.5, VS  And this causes ImportError: DLL load failed: Can't find specified moudule. while the file Python37\Lib\site-packages\psycopg2\_psycopg.cp37-win_amd64.pyd exists! Whats wrong with import? It's regression?

DLL load failed: The specified module could not be found., Django error for psycopg2 ImportError: DLL load failed. Question. Hi I am getting this error while I am trying to run syncdb in my virtual environment. If I copy  I'm using the django framework in Visual Studio 2015 with python 2.7 and i'm trying to import an opencv file called cv2, the system recognizes its there but I keep getting the

🧑 Django error for psycopg2 ImportError: DLL loading error , ImportError: DLL load failed: The specified module could not be found. This discussion is I am having a similar error when trying to run a server. I'm new to Django so I was unsure if I was doing something wrong. Python  ImportError: DLL load failed: The specified module could not be found. Failed to load the native TensorFlow runtime. #37042

Comments
  • Have you installed the PostgreSQL client library?
  • Yes I did, i have installed psycopg from initd.org/psycopg and did an "easy_install psycopg2". Its still not working, is there any other lib i should be using ?
  • The PostgreSQL client library, which the DB-API adapter (which you have installed) uses to talk to the database server.
  • Note that the particularly important part of this for VirtualEnv's can be found below the Windows installer download: Do not double-click the package to run. Instead, use easy_install to execute the .exe from within your activated virtualenvironment.
  • be sure to choose the 32 bit version or he 64 bit version according to your system on the stickpeople website
  • This tip worked for me. I'm on Windows 8 64 bits Brazilian Portuguese, Enthought Canopy Python 2.7.6 64-bit, Postgres 9.3 with Postgis enabled. I installed both psycopg2 and ppygis with pip install.
  • I updated windows path to include Postgres bin folder. But had to restart command line to get it working was what I needed!