Skip to content
Advertisement

Cant install PyTables at windows

I try to install the PyTables module. I use Windows 7 (x32), Python 2.7.3 (x32), Cython 0.16, Visual Studio 2008 (9.0). At cmd.exe ‘run as administrator’ write: ‘python setup.py install –hdf5=”C:Program FilesHDF GroupHDF51.8.9″‘.

But there are unresolved external symbols and build failed:

* Found numpy 1.6.2 package installed.
* Found numexpr 2.0.1 package installed.
* Found Cython 0.16 package installed.
* Found HDF5 headers at ``C:Program FilesHDF GroupHDF51.8.9include``, libra
ry at ``C:Program FilesHDF GroupHDF51.8.9lib``.
* Could not find LZO 2 headers and library; disabling support for it.
* Could not find LZO 1 headers and library; disabling support for it.
* Could not find bzip2 headers and library; disabling support for it.
cythoning tableslinkExtension.pyx to tableslinkExtension.c
running install
running build
running build_py
running build_ext
No module named msvccompiler in numpy.distutils; trying from distutils
building 'tables.utilsExtension' extension
C:Program FilesMicrosoft Visual Studio 9.0VCBINcl.exe /c /nologo /Ox /MD /W
3 /GS- /DNDEBUG -DNDEBUG=1 -DWIN32=1 -D_HDF5USEDLL_=1 -Iblosc -IC:Python27lib
site-packagesnumpy-1.6.2-py2.7-win32.eggnumpycoreinclude -I"C:Program Files
HDF GroupHDF51.8.9include" -IC:Python27include -IC:Python27PC /Tctables
utilsExtension.c /Fobuildtemp.win32-2.7ReleasetablesutilsExtension.obj -Isrc
 -DH5_USE_16_API
Found executable C:Program FilesMicrosoft Visual Studio 9.0VCBINcl.exe
utilsExtension.c
c:program fileshdf grouphdf51.8.9includeH5public.h(47) : fatal error C1083
: Не удается открыть файл include: stdint.h: No such file or directory
error: Command "C:Program FilesMicrosoft Visual Studio 9.0VCBINcl.exe /c /n
ologo /Ox /MD /W3 /GS- /DNDEBUG -DNDEBUG=1 -DWIN32=1 -D_HDF5USEDLL_=1 -Iblosc -I
C:Python27libsite-packagesnumpy-1.6.2-py2.7-win32.eggnumpycoreinclude -I"
C:Program FilesHDF GroupHDF51.8.9include" -IC:Python27include -IC:Python
27PC /TctablesutilsExtension.c /Fobuildtemp.win32-2.7ReleasetablesutilsExt
ension.obj -Isrc -DH5_USE_16_API" failed with exit status 2

Advertisement

Answer

Installing Python packages with C extensions from source on Windows is difficult. Luckily, there are people who build these kits and make them available: http://www.lfd.uci.edu/~gohlke/pythonlibs/#pytables

Install it from a binary kit, you’ll be much happier.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement