Reputation: 51
When I try to install psycopg2, using PIP in a virtual environment, on Windows 8 I get the following error:
c:\python27\include\pyconfig.h(231) : fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\BIN\\amd64\\cl.exe' failed with exit status 2
I had previously had this error:
error: Unable to find vcvarsall.bat
So I followed the various answers in this question:
and managed to get rid of
error: Unable to find vcvarsall.bat
but have this new one to contend with
any ideas?
thanks
Upvotes: 0
Views: 1354
Reputation: 33071
According to the psycopg website, you're supposed to install it using the Windows port:
I'm guessing you'll need a version of Visual Studio installed for pip to be able to compile the headers correctly.
Upvotes: 1