From: bloodykheeng (@bloodykheeng) <noreply+bloodykheeng@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #870: cant install pgvector on windows
Date: Thu, 03 Jul 2025 12:04:55 +0000
Message-ID: <gh-pgvector-pgvector-870-c3032018194@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-870@github.com>
References: <gh-pgvector-pgvector-870@github.com>
so what i did to solve the above error is
I had to use the x64 Native Tools Command Prompt specifically
so i searched for "x64 Native Tools Command Prompt for VS 2022" in the Start menu
then opened it and i ran these commands
```
set "PGROOT=C:\laragon\bin\postgresql\postgresql-17.5-2"
cd %TEMP%\pgvector
nmake /F Makefile.win clean
nmake /F Makefile.win
nmake /F Makefile.win install
```
After battling for a whole day and night with pgvector on Windows 11... 🥵⚔️🧠
Hooray! It's finally installed successfully! 🎉💪🚀