From 6249cc6cd9b05f84cba2bdc115c830b05beffc17 Mon Sep 17 00:00:00 2001 From: Brian Marroquin Date: Tue, 5 Oct 2021 21:21:16 -0700 Subject: [PATCH] add note for dll import errors --- doc/src/install.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/src/install.rst b/doc/src/install.rst index fb663100..72657c28 100644 --- a/doc/src/install.rst +++ b/doc/src/install.rst @@ -218,6 +218,14 @@ which is OS-dependent (for instance setting a suitable trying to match it to the version of the PostgreSQL server you will have to connect to. +.. note:: + + Since version 3.8, Python does not resolve DLLs using the :envvar:`PATH` + variable on Windows. In order for the ``libpq.dll`` to be resolved + properly, add the DLLs parent directory to the search path using + os.add_dll_directory_ + +.. _os.add_dll_directory: https://docs.python.org/3/library/os.html#os.add_dll_directory .. index:: single: setup.py