I tried to fulfill some requirements for a python project in windows using pip install -r requirements.txt, however this will not work. After some investigation, I found that it fails due to lupa. Running "pip install lupa" shows the same error as when trying to install the requirements, as shown below in the stack:
Collecting lupa Using cached lupa-1.2.tar.gz Building wheels for collected packages: lupa Running setup.py bdist_wheel for lupa: started Running setup.py bdist_wheel for lupa: finished with status 'error' Complete output from command d:\development\tools\python\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Achiraaz\\AppData\\Local\\Temp\\pip-build-g477k1jp\\lupa\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d C:\Users\Achiraaz\AppData\Local\Temp\tmped2hn2icpip-wheel- --python-tag cp35: No local build of LuaJIT2 found in lupa directory Checking for installed luajit library using pkg-config pkg-config found luajit version 2.0.4 building without Cython running bdist_wheel running build running build_py creating build creating build\lib.win32-3.5 creating build\lib.win32-3.5\lupa copying lupa\version.py -> build\lib.win32-3.5\lupa copying lupa\__init__.py -> build\lib.win32-3.5\lupa running build_ext building 'lupa._lupa' extension creating build\temp.win32-3.5 creating build\temp.win32-3.5\Release creating build\temp.win32-3.5\Release\lupa D:\Development\IDE\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DLUA_COMPAT_ALL -I/usr/include/luajit-2.0 -Id:\development\tools\python\include -Id:\development\tools\python\include "-ID:\Development\IDE\Microsoft Visual Studio 14.0\VC\INCLUDE" "-ID:\Development\IDE\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10586.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10586.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10586.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10586.0\winrt" "-ID:\Development\IDE\Microsoft Visual Studio 14.0\VC\INCLUDE" "-ID:\Development\IDE\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10586.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10586.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10586.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10586.0\winrt" /Tclupa/_lupa.c /Fobuild\temp.win32-3.5\Release\lupa/_lupa.obj _lupa.c lupa/_lupa.c(265): fatal error C1083: Cannot open include file: 'lua.h': No such file or directory error: command 'D:\\Development\\IDE\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2 ---------------------------------------- Running setup.py clean for lupa Failed to build lupa Installing collected packages: lupa Running setup.py install for lupa: started Running setup.py install for lupa: finished with status 'error' Complete output from command d:\development\tools\python\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Achiraaz\\AppData\\Local\\Temp\\pip-build-g477k1jp\\lupa\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\Achiraaz\AppData\Local\Temp\pip-5d7gkihi-record\install-record.txt --single-version-externally-managed --compile: No local build of LuaJIT2 found in lupa directory Checking for installed luajit library using pkg-config pkg-config found luajit version 2.0.4 building without Cython running install running build running build_py creating build creating build\lib.win32-3.5 creating build\lib.win32-3.5\lupa copying lupa\version.py -> build\lib.win32-3.5\lupa copying lupa\__init__.py -> build\lib.win32-3.5\lupa running build_ext building 'lupa._lupa' extension creating build\temp.win32-3.5 creating build\temp.win32-3.5\Release creating build\temp.win32-3.5\Release\lupa D:\Development\IDE\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DLUA_COMPAT_ALL -I/usr/include/luajit-2.0 -Id:\development\tools\python\include -Id:\development\tools\python\include "-ID:\Development\IDE\Microsoft Visual Studio 14.0\VC\INCLUDE" "-ID:\Development\IDE\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10586.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10586.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10586.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10586.0\winrt" "-ID:\Development\IDE\Microsoft Visual Studio 14.0\VC\INCLUDE" "-ID:\Development\IDE\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10586.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10586.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10586.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10586.0\winrt" /Tclupa/_lupa.c /Fobuild\temp.win32-3.5\Release\lupa/_lupa.obj _lupa.c lupa/_lupa.c(265): fatal error C1083: Cannot open include file: 'lua.h': No such file or directory error: command 'D:\\Development\\IDE\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2 ----------------------------------------
At first I tried to compile and install luajit using the approach described below: http://luajit.org/install.html , but this did not solve the problem.
Then I managed to install luajit (at least I think I did) using hererocks, but for some reason it will not pick up lua.h, although the file is in the luajit / include library, so the end result was the same.
I found this article: Creating luafilesystem for Lua for Windows and I tried to play around with the described environment variables, but no luck ..
It seems to me that for some reason the file is not included in the assembly, and I can not get it to allow this.
Any or all help and suggestions are welcome.
I am running Windows 10 with Visual Studio Express Edition. I have cygwin and mingw, but I would like to stick with the SDK if possible.