Import Pystan._api Failed:importerror: Dll Load Failed: The Specified Module Could Not Be Found
Solution 1:
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:
Install C++ compiler, mingw-w64 (http://mingw-w64.org/doku.php/download) -> I selected this one https://sourceforge.net/projects/mingw-w64/files/
Add C:<MinGW_w64 installation directory>\bin to the PATH environment variable
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
pip install numpy cython
pip install pystan==2.17.1
Verify the Pystan installation (https://pystan.readthedocs.io/en/latest/windows.html)
pip install fbprophet==0.6
Solution 2:
Follow https://github.com/facebook/prophet/issues/1939 I had similar issues even after installing Mingw
conda install libpython m2w64-toolchain -c msys2
Solved all the errors and i am able to install fbprophet finally Thanks
Solution 3:
I had similar issues with my Python3.6 (anaconda)
I reinstalled anaconda for all users (with admin privileges) then "conda install -c conda-forge pystan" later i updated all other modules
it works without any error now
Post a Comment for "Import Pystan._api Failed:importerror: Dll Load Failed: The Specified Module Could Not Be Found"