在pycharm下,安裝statsmodels,會出現須要vc++14.0的錯誤提示。
這時能夠到網站
下載statsmodels‑0.8.0‑cp36‑cp36m‑win_amd64.whl
注意將文件拷貝到pycharm的工程下pythone.exe目錄
打開CMD窗口,切換到pycharm的工程下pythone.exe所在的目錄
cd C:\Users\用戶名\PycharmProjects\untitled\venv\Scripts>
而後用pip install statsmodel 命令進行安裝。
注意必定要切換到pycharm的工程下的python.exe目錄。不然會用path變量中,對應的python.exe進行安裝。在pycharm工程文件中,仍是找不到statsmodels包。
須要依賴的包:
statsmodels 0.8 was tested with the following minimal version requirements. However, some features require more recent versions.
- Python >= 2.6, including Python 3.x
- NumPy >= 1.6
- SciPy >= 0.11
- Pandas >= 0.12
- Patsy >= 0.2.1
- Cython >= 0.24 is required to build the code from github but not from a source distribution. Earlier versions may work, although you must use Cython >= 0.20.1 if you’re on Python 3.4
- wheel(這個是安裝whl文件須要的?)