From: soonil115 (@soonil115) <noreply+soonil115@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #797: Error installing pgvector on Windows
Date: Mon, 25 Aug 2025 10:13:01 +0000
Message-ID: <gh-pgvector-pgvector-797-c3219656655@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-797@github.com>
References: <gh-pgvector-pgvector-797@github.com>
I had the same problem, this was my solution:
**Run CMD as an administrator.**
**cd C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build**
**vcvars64.bat**
(When I run vcvars64.bat from File Explorer, CMD appears and then closes immediately.)
set "PGROOT=C:\Program Files\PostgreSQL\17"
cd %TEMP%
git clone --branch v0.8.0 https://github.com/pgvector/pgvector.git
cd pgvector
nmake /F Makefile.win
nmake /F Makefile.win install
The build was successful with Visual Studio 2022 Professional(vcvars64.bat) and PostgreSQL 17.6 in Windows 11