thunder-project/thunder

Installing Thunder in Windows 7

nvladimus opened this issue · 1 comments

Hi, folks,
I tried to install Thunder in Anaconda on Windows 7, using pip install thunder-python. It asked to install Visual C++ for Python, which I did. Still, installation fails with the following errors:

...
    writing dependency_links to tifffile.egg-info\dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'tifffile.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching '*.c'
    warning: no previously-included files matching '__pycache__' found under di
ectory '*'
    warning: no previously-included files matching '*.py[co]' found under direc
ory '*'
    writing manifest file 'tifffile.egg-info\SOURCES.txt'
    copying tifffile\_tifffile.c -> build\lib.win-amd64-2.7\tifffile
    running build_ext
    building 'tifffile._tifffile' extension
    creating build\temp.win-amd64-2.7
    creating build\temp.win-amd64-2.7\Release
    creating build\temp.win-amd64-2.7\Release\tifffile
    C:\Users\username\AppData\Local\Programs\Common\Microsoft\Visual C++ for Pyt
on\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\users\nvla
im\appdata\local\continuum\anaconda2\lib\site-packages\numpy\core\include -Ic:\
sers\username\appdata\local\continuum\anaconda2\include -Ic:\users\username\appda
a\local\continuum\anaconda2\PC /Tctifffile/_tifffile.c /Fobuild\temp.win-amd64-
.7\Release\tifffile/_tifffile.obj
    _tifffile.c
    tifffile/_tifffile.c(75) : fatal error C1083: Cannot open include file: 'st
int.h': No such file or directory
    error: command 'C:\\Users\\username\\AppData\\Local\\Programs\\Common\\Micro
oft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit statu
 2

    ----------------------------------------
Command "c:\users\username\appdata\local\continuum\anaconda2\python.exe -u -c "i
port setuptools, tokenize;__file__='c:\\users\\username\\appdata\\local\\temp\\p
p-build-tcw9mf\\tifffile\\setup.py';f=getattr(tokenize, 'open', open)(__file__)
code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exe
'))" install --record c:\users\username\appdata\local\temp\pip-bn1cya-record\ins
all-record.txt --single-version-externally-managed --compile" failed with error
code 1 in c:\users\username\appdata\local\temp\pip-build-tcw9mf\tifffile\

Is there any fix or workaround for it?
Thanks!

Thanks for @boazmohar , here is a fix: download and unzip missing header files into C:\Users\username\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\include folder and then run pip install thunder-python. Thunder installs well!