Postgresql 9.1: Installing plpythonu/plpython3u (Python) in Windows
Install plpython3u
If you're lucky,the following command will just work,and the Python language has been successfully installed:
If you encounter the following error:
ERROR: could not load library "C:/Program Files/Postgresql/9.1/lib/plpython3.dll": The specified module could not be found.
We have a little more work to do.
Postgresql 9.1 requires a VERY specific sub-version of the Python DLL: Python 3.2.x. (availablehere) Any other version (3.1.x,3.3.x,or otherwise) will cause the installation of plpython3u to fail. In addition,Postgresql 9.1 unfortunately does not appear to ship with Python 2.x support either.
If Python 3.2.x is not installed,download and install it.
Browse to your Python 3.2.x installation directory. By default,this should be something similar to: C:\Python32. From here,navigate to theDDLsdirectory and locate a DLL namedpython3.dll.
In a separate window,browse to you Postgresql installation directory. By default,this should be something similar to: C:\Program Files\Postgresql\9.1. From there,navigate into thelibdirectory and copy the python3.dll from the other window into this directory. Rename the copied DLL from python3.dll topython3@H_403_55@2.dll.
Finally,attempt to run the CREATE EXTENSION command again: