import pystan._api failed:ImportError: DLL load failed: The specified module could not be found

前端 未结 1 776
长情又很酷
长情又很酷 2020-12-21 19:41

I have installed python 3.7 and want to do some forecasting using fbprophet (https://facebook.github.io/prophet/docs/installation.html#python)

But I get this error w

相关标签:
1条回答
  • 2020-12-21 19:51

    It says in the Pystan documentation that configuring a C++ compiler can be challenging on Windows. Following approach worked for me to install Pystan 2.17.1 and FBProphet 0.6:

    1. Install C++ compiler, mingw-w64 (http://mingw-w64.org/doku.php/download) -> I selected this one https://sourceforge.net/projects/mingw-w64/files/

    2. Add C:<MinGW_w64 installation directory>\bin to the PATH environment variable

    3. Create a distutils.cfg file with the following contents in the folder \Lib\distutils in Python install directory (in venv):

      [build] compiler=mingw32

      [build_ext] compiler=mingw32

    4. pip install numpy cython

    5. pip install pystan==2.17.1

    6. Verify the Pystan installation (https://pystan.readthedocs.io/en/latest/windows.html)

    7. pip install fbprophet==0.6

    0 讨论(0)
提交回复
热议问题