我正在尝试使用python版本= 3.6.3和OSX = 10.11.6编译statsmodels的最新资源,并在导入statsmodel.api时出现以下错误
>>> import statsmodels.api as sm
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/amanagar/Git/statsmodels/statsmodels/api.py", line 7, in <module>
from .regression.recursive_ls import RecursiveLS
File "/Users/amanagar/Git/statsmodels/statsmodels/regression/recursive_ls.py", line 19, in <module>
from statsmodels.tsa.statespace.mlemodel import (
File "/Users/amanagar/Git/statsmodels/statsmodels/tsa/statespace/mlemodel.py", line 18, in <module>
from .simulation_smoother import SimulationSmoother
File "/Users/amanagar/Git/statsmodels/statsmodels/tsa/statespace/simulation_smoother.py", line 10, in <module>
from .kalman_smoother import KalmanSmoother
File "/Users/amanagar/Git/statsmodels/statsmodels/tsa/statespace/kalman_smoother.py", line 11, in <module>
from statsmodels.tsa.statespace.representation import OptionWrapper
File "/Users/amanagar/Git/statsmodels/statsmodels/tsa/statespace/representation.py", line 10, in <module>
from .tools import (
File "/Users/amanagar/Git/statsmodels/statsmodels/tsa/statespace/tools.py", line 14, in <module>
from . import (_initialization, _representation, _kalman_filter,
ImportError: cannot import name '_initialization'
>>>
编译我使用的软件包。
pip install .
任何人都可以帮助我进行调试。我看不到我缺少哪个程序包或依赖项。