操作系统:win10 python2.7.12 64位
我安装了如下statsmodels:
pip install statsmodels
但有一个错误:
^{pr2}$所以,我从http://aka.ms/vcpython27下载vcpython27。并安装了它。 再次如下:
pip install statsmodels
出现新错误:
...
creating build\temp.win-amd64-2.7\Release\statsmodels\tsa\regime_switching
C:\Users\GL\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Id:\python2.7\lib\site-packages\numpy\core\include -Id:\python2.7\include -Id:\python2.7\PC /Tcstatsmodels/tsa/regime_switching/_hamilton_filter.c /Fobuild\temp.win-amd64-2.7\Release\statsmodels/tsa/regime_switching/_hamilton_filter.obj
Found executable C:\Users\GL\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe
_hamilton_filter.c
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\corecrt.h(10) : fatal error C1083: Cannot open include file: 'vcruntime.h': No such file or directory
error: Command "C:\Users\GL\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Id:\python2.7\lib\site-packages\numpy\core\include -Id:\python2.7\include -Id:\python2.7\PC /Tcstatsmodels/tsa/regime_switching/_hamilton_filter.c /Fobuild\temp.win-amd64-2.7\Release\statsmodels/tsa/regime_switching/_hamilton_filter.obj" failed with exit status 2
我尽力了,但还是解决不了。 有人有什么建议吗?在
非常感谢,这个网站(…关于非常有用的高尔克…@PeterWood gives)非常有用。我从它下载statsmodels。然后安装成功。在
相关问题 更多 >
编程相关推荐