{"action":"created","issue":{"url":"https://api.github.com/repos/statsmodels/statsmodels/issues/2751","labels_url":"https://api.github.com/repos/statsmodels/statsmodels/issues/2751/labels{/name}","comments_url":"https://api.github.com/repos/statsmodels/statsmodels/issues/2751/comments","events_url":"https://api.github.com/repos/statsmodels/statsmodels/issues/2751/events","html_url":"https://github.com/statsmodels/statsmodels/issues/2751","id":125180101,"number":2751,"title":"Building on Windows 10 using  mingw32","user":{"login":"petobens","id":2583971,"avatar_url":"https://avatars.githubusercontent.com/u/2583971?v=3","gravatar_id":"","url":"https://api.github.com/users/petobens","html_url":"https://github.com/petobens","followers_url":"https://api.github.com/users/petobens/followers","following_url":"https://api.github.com/users/petobens/following{/other_user}","gists_url":"https://api.github.com/users/petobens/gists{/gist_id}","starred_url":"https://api.github.com/users/petobens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petobens/subscriptions","organizations_url":"https://api.github.com/users/petobens/orgs","repos_url":"https://api.github.com/users/petobens/repos","events_url":"https://api.github.com/users/petobens/events{/privacy}","received_events_url":"https://api.github.com/users/petobens/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/statsmodels/statsmodels/labels/build","name":"build","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-06T13:52:03Z","updated_at":"2016-01-06T19:05:19Z","closed_at":null,"body":"Hi, I'm trying to build statsmodels on a Windows 10 machine (with Python 3.5, Numpy\r\n1.10.2 and Cython 0.23.4). Since I have mingw32 I originally tried building\r\ndirectly with `python setup.py build -c mingw32` but got the following error.\r\n```\r\nValueError: Unknown MS Compiler version 1900\r\n```\r\nIn order to attempt to solve this problem, following the discussion in [this](https://bugs.python.org/issue25251)\r\nbug report, I applied the changes/patch in this [pull request](https://github.com/numpy/numpy/pull/6875). However when running again `python setup.py build -c mingw32` I now get the following output:\r\n```\r\nC:\\Users\\Pedro\\Desktop\\statsmodels>python setup.py build -c mingw32\r\nCythonizing sources\r\nstatsmodels\\nonparametric\\linbin.pyx has not changed\r\nstatsmodels\\nonparametric\\_smoothers_lowess.pyx has not changed\r\nstatsmodels\\tsa\\kalmanf\\kalman_loglike.pyx has not changed\r\nstatsmodels\\tsa\\statespace\\_statespace.pyx.in has not changed\r\nrunning build\r\nrunning build_py\r\ncopying statsmodels\\version.py -> build\\lib.win-amd64-3.5\\statsmodels\r\npackage init file 'statsmodels\\tsa\\vector_ar\\data\\__init__.py' not found (or not a regular file)\r\nrunning build_ext\r\nLooking for python35.dll\r\nCannot build msvcr library: \"vcruntime140d.dll\" not found\r\nbuilding 'statsmodels.nonparametric.linbin' extension\r\nC compiler: gcc -g -DDEBUG -DMS_WIN64 -O0 -Wall -Wstrict-prototypes\r\n\r\ncompile options: '-DNPY_MINGW_USE_CUSTOM_MSVCR -D__MSVCRT_VERSION__=0x1400 -IC:\\prog-lang\\python\\lib\\site-packages\\numpy\\core\\include -IC:\\prog-lang\\python\\include -IC:\\prog-lang\\python\\include -c'\r\ngcc -g -DDEBUG -DMS_WIN64 -O0 -Wall -Wstrict-prototypes -DNPY_MINGW_USE_CUSTOM_MSVCR -D__MSVCRT_VERSION__=0x1400 -IC:\\prog-lang\\python\\lib\\site-packages\\numpy\\core\\include -IC:\\prog-lang\\python\\include -IC:\\prog-lang\\python\\include -c statsmodels/nonparametric/linbin.c -o build\\temp.win-amd64-3.5\\Release\\statsmodels\\nonparametric\\linbin.o\r\nFound executable C:\\prog-tools\\msys2\\mingw64\\bin\\gcc.exe\r\ngcc -g -shared build\\temp.win-amd64-3.5\\Release\\statsmodels\\nonparametric\\linbin.o -LC:\\prog-lang\\python\\libs -LC:\\prog-lang\\python\\PCbuild\\amd64 -lpython35 -lvcruntime140 -lucrtbase -o build\\lib.win-amd64-3.5\\statsmodels\\nonparametric\\linbin.cp35-win_amd64.pyd\r\nC:/prog-tools/msys2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lucrtbase\r\ncollect2.exe: error: ld returned 1 exit status\r\nerror: Command \"gcc -g -shared build\\temp.win-amd64-3.5\\Release\\statsmodels\\nonparametric\\linbin.o -LC:\\prog-lang\\python\\libs -LC:\\prog-lang\\python\\PCbuild\\amd64 -lpython35 -lvcruntime140 -lucrtbase -o build\\lib.win-amd64-3.5\\statsmodels\\nonparametric\\linbin.cp35-win_amd64.pyd\" failed with exit status 1\r\n```\r\nI checked and there is `ucrtbase.dll` file in `C:\\Windows\\System32`. I am\r\nprobably missing something important but I have no\r\nidea what is going on. Any help will be greatly appreciated.\r\nIf, for whatever reason, it is not possible to build statmodels dev on Windows,\r\ncan someone point me to updated binaries? Thanks in advance!"},"comment":{"url":"https://api.github.com/repos/statsmodels/statsmodels/issues/comments/169422343","html_url":"https://github.com/statsmodels/statsmodels/issues/2751#issuecomment-169422343","issue_url":"https://api.github.com/repos/statsmodels/statsmodels/issues/2751","id":169422343,"user":{"login":"rgommers","id":98330,"avatar_url":"https://avatars.githubusercontent.com/u/98330?v=3","gravatar_id":"","url":"https://api.github.com/users/rgommers","html_url":"https://github.com/rgommers","followers_url":"https://api.github.com/users/rgommers/followers","following_url":"https://api.github.com/users/rgommers/following{/other_user}","gists_url":"https://api.github.com/users/rgommers/gists{/gist_id}","starred_url":"https://api.github.com/users/rgommers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgommers/subscriptions","organizations_url":"https://api.github.com/users/rgommers/orgs","repos_url":"https://api.github.com/users/rgommers/repos","events_url":"https://api.github.com/users/rgommers/events{/privacy}","received_events_url":"https://api.github.com/users/rgommers/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T19:05:19Z","updated_at":"2016-01-06T19:05:19Z","body":"mingw32 does not and will never work with Python 3.5, due to Python 3.5 moving to MSVC'15 and mingw32 being a dead project. \r\n\r\nMingw-w64 doesn't work with Python 3.5 now, but may start to work in the coming year. But don't try it now, a simple patch won't get you there. See http://mingwpy.github.io/ for details if interested.\r\n\r\nSo for now: use MSVC or Intel compilers."}}