在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文件需要的?)

相关文章:

  • 2021-09-01
  • 2021-12-25
  • 2021-05-14
  • 2022-02-08
  • 2021-08-16
  • 2021-12-31
  • 2021-05-21
  • 2021-12-19
猜你喜欢
  • 2021-06-11
  • 2021-10-10
  • 2022-12-23
  • 2021-07-22
  • 2021-07-24
  • 2021-08-02
  • 2021-09-01
相关资源
相似解决方案