![找不到模組錯誤:沒有名為“statsmodels”的模組](https://rvso.com/image/1604662/%E6%89%BE%E4%B8%8D%E5%88%B0%E6%A8%A1%E7%B5%84%E9%8C%AF%E8%AA%A4%EF%BC%9A%E6%B2%92%E6%9C%89%E5%90%8D%E7%82%BA%E2%80%9Cstatsmodels%E2%80%9D%E7%9A%84%E6%A8%A1%E7%B5%84.png)
我正在使用 python 3.6(使用 檢查python -v
)並嘗試在我的 jupyter 筆記本中“導入 statsmodels.api as sm”。但是,即使我statsmodels
從命令列安裝後,它也顯示模組未找到錯誤。
當我跑步時:pip install statsmodels
或者pip3 install statsmodels
它說
Requirement already satisfied: six in c:\users\17372\appdata\local\programs\python\python36\lib\site-packages (from patsy>=0.4.0->statsmodels) (1.12.0)
scipy
之前有人建議安裝statsmodels
,我也這麼做了。
我的 jupyter 筆記本中的內核顯示“Python 3”