pandas cannot be installed on Windows, neither with pip or easy_install:
$ pip install pandas
...
...
running build_ext
building 'pandas._tseries' extension
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
creating build\temp.win-amd64-2.7\Release\pandas
creating build\temp.win-amd64-2.7\Release\pandas\src
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Python27\lib\site-packages\numpy\core\include -IC:\Python27\include -IC:\Python27\PC /Tcpandas\src\tseries.c /Fobuild\temp.win-amd64-2.7\Release\pandas\src\tseries.obj
tseries.c
c:\python27\include\pyconfig.h(68) : fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' failed with exit status 2
You can install pandas on Windows from binaries here: http://pypi.python.org/pypi/pandas.
There is likely something idiosyncratic wrong with your setup-- can you build from git latest revision (requires Cython)? I personally haven't had any problems compiling with VS9 across the Python versions. There's a chance that there was a bug in the Cython version I used to build the C sources-- I will need to fire up my Windows VM and test myself when I have a chance.
Works for me on windows:
C:\Python27\Scripts>easy_install pandas
Searching for pandas
Reading http://pypi.python.org/simple/pandas/
Reading http://pandas.sourceforge.net
Reading http://pandas.pydata.org
Best match: pandas 0.7.2
Downloading http://pypi.python.org/packages/2.7/p/pandas/pandas-0.7.2.win-amd64-py2.7.exe#md5=8792a04d295f65b479d7ff172ad90026
Processing pandas-0.7.2.win-amd64-py2.7.exe
creating 'c:\users\chang\appdata\local\temp\easy_install-dqpkny\pandas-0.7.2-py2.7-win-amd64.egg' and adding 'c:\users\chang\appdata\local\temp\easy_install-dqpkny\pandas-0.7.2-py2.7-win-amd64.egg.tmp' to it
creating c:\python27\lib\site-packages\pandas-0.7.2-py2.7-win-amd64.egg
Extracting pandas-0.7.2-py2.7-win-amd64.egg to c:\python27\lib\site-packages
Adding pandas 0.7.2 to easy-install.pth file
Installed c:\python27\lib\site-packages\pandas-0.7.2-py2.7-win-amd64.egg
Processing dependencies for pandas
Finished processing dependencies for pandas
That's because it downloaded a binary. When he used pip it built from source, something weird up with his VS9
oh he said it doesn't work when he uses easy_install as well
Closing this issue-- pls let us know if you're still having issues or aren't able to install the binaries
If anyone has this kind of error, just install Windows SDK looking at this include (Windows 10 SDK):
"-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10586.0\ucrt"
You may download and install the appropriate for your build.
Leaving this here for other users who use the Visual Studio, Python, Windows combination.
When getting build errors during pip installs (io.h, rc.exe not found etc), in my case with netifaces / pychromecast (but the issue is the same for all), make the following changes / to your environment variables:
INCLUDE (create if needed)
C:\Program Files (x86)\Microsoft Visual Studio2017\Professional\SDK\ScopeCppSDK\SDK\include\ucrt;C:\Program Files (x86)\Microsoft Visual Studio2017\Professional\SDK\ScopeCppSDK\SDK\include\shared;C:\Program Files (x86)\Microsoft Visual Studio2017\Professional\SDK\ScopeCppSDK\SDK\include\um
LIB (create if needed)
C:\Program Files (x86)\Microsoft Visual Studio2017\Professional\SDK\ScopeCppSDK\SDK\lib
Add to PATH
C:\Program Files (x86)\Microsoft Visual Studio2017\Professional\SDK\ScopeCppSDK\SDK\bin
Leaving this here for other users who use the Visual Studio, Python, Windows combination.
When getting build errors during pip installs (io.h, rc.exe not found etc), in my case with netifaces / pychromecast (but the issue is the same for all), make the following changes / to your environment variables:
INCLUDE (create if needed)
C:\Program Files (x86)\Microsoft Visual Studio2017\Professional\SDK\ScopeCppSDK\SDK\include\ucrt;C:\Program Files (x86)\Microsoft Visual Studio2017\Professional\SDK\ScopeCppSDK\SDK\include\shared;C:\Program Files (x86)\Microsoft Visual Studio2017\Professional\SDK\ScopeCppSDK\SDK\include\umLIB (create if needed)
C:\Program Files (x86)\Microsoft Visual Studio2017\Professional\SDK\ScopeCppSDK\SDK\libAdd to PATH
C:\Program Files (x86)\Microsoft Visual Studio2017\Professional\SDK\ScopeCppSDK\SDK\bin
Which is done in command line entering:
set INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio2017\Professional\SDK\ScopeCppSDK\SDK\include\ucrt;C:\Program Files (x86)\Microsoft Visual Studio2017\Professional\SDK\ScopeCppSDK\SDK\include\shared;C:\Program Files (x86)\Microsoft Visual Studio2017\Professional\SDK\ScopeCppSDK\SDK\include\um
set LIB=C:\Program Files (x86)\Microsoft Visual Studio2017\Professional\SDK\ScopeCppSDK\SDK\lib
set PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio2017\Professional\SDK\ScopeCppSDK\SDK\bin
Most helpful comment
Leaving this here for other users who use the Visual Studio, Python, Windows combination.
When getting build errors during pip installs (io.h, rc.exe not found etc), in my case with netifaces / pychromecast (but the issue is the same for all), make the following changes / to your environment variables:
INCLUDE (create if needed)
C:\Program Files (x86)\Microsoft Visual Studio2017\Professional\SDK\ScopeCppSDK\SDK\include\ucrt;C:\Program Files (x86)\Microsoft Visual Studio2017\Professional\SDK\ScopeCppSDK\SDK\include\shared;C:\Program Files (x86)\Microsoft Visual Studio2017\Professional\SDK\ScopeCppSDK\SDK\include\um
LIB (create if needed)
C:\Program Files (x86)\Microsoft Visual Studio2017\Professional\SDK\ScopeCppSDK\SDK\lib
Add to PATH
C:\Program Files (x86)\Microsoft Visual Studio2017\Professional\SDK\ScopeCppSDK\SDK\bin