我已经安装了Python3.7,并希望使用fbprophet (https://facebook.github.io/prophet/docs/installation.html#python)进行一些预测。
但是当我使用命令(pip install fbprophet)安装软件包时,我得到了这个错误
import pystan
File "e:\repos\usf\venv\lib\site-packages\pystan\__init__.py", line 9, in <module>
from pystan.api import stanc, stan
File "e:\repos\usf\venv\lib\site-packages\pystan\api.py", line 13, in <module>
import pystan._api # stanc wrapper
ImportError: DLL load failed: The specified module could not be found.我做了一些研究,知道这在conda中是可能的。但我正在寻找一种不使用conda的解决方案。
提前谢谢。
发布于 2020-11-06 19:15:49
它在Pystan documentation中说,在Windows上配置C++编译器可能是一个挑战。以下方法对我安装Pystan2.17.1和FBProphet 0.6起到了作用:
构建compiler=mingw32
build_ext compiler=mingw32
安装pystan==2.17.1的
验证Pystan installation (https://pystan.readthedocs.io/en/latest/windows.html)
安装fbprophet==0.6的
发布于 2021-06-17 02:41:42
关注https://github.com/facebook/prophet/issues/1939我甚至在安装了Mingw之后也遇到了类似的问题
conda install libpython m2w64-toolchain -c msys2解决了所有的错误,我能够安装fbprophet,最后感谢
发布于 2022-01-03 09:22:57
我的Python3.6 (anaconda)也有类似的问题。
我为所有用户重新安装了anaconda (具有管理员权限),然后"conda install -c conda-forge pystan“,后来我更新了所有其他模块
它现在可以正常工作,没有任何错误
https://stackoverflow.com/questions/60388880
复制相似问题