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