为python2.7安装statsmodels时出错

2024-06-16 11:00:54 发布

您现在位置:Python中文网/ 问答频道 /正文

操作系统: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

我尽力了,但还是解决不了。 有人有什么建议吗?在


Tags: idreleaseincludefilterwinusersappdatatemp
1条回答
网友
1楼 · 发布于 2024-06-16 11:00:54

非常感谢,这个网站(…关于非常有用的高尔克…@PeterWood gives)非常有用。我从它下载statsmodels。然后安装成功。在

相关问题 更多 >