build psycopg2 on windows with vs

prerequisites:

 

1: postgresql 

2: vs

 

steps:

 

1: run

 

python setup.py build build_ext --pg-config x:/pgsql/bin/pg_config.exe

 

2: make sure following dlls are on the path:

 

libpq.dll

libeay32.dll

ssleay32.dll

libintl-8.dll

libiconv-2.dll

 

 

done..

 

caution: make sure the version match...(32 bit vs 64 bit)

 

你可能感兴趣的:(windows)