我已经安装了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的解决方案
提前谢谢
它在Pystan documentation中说,在Windows上配置C++编译器可能是有挑战性的。以下方法适用于我安装Pystan 2.17.1和FBProphet 0.6:
添加C:<;MinGW_w64安装目录>\bin到PATH环境变量
在Python安装目录(在venv中)的\Lib\distutils文件夹中创建一个distutils.cfg文件,其中包含以下内容:
[建造] 编译器=mingw32
[构建扩展] 编译器=mingw32
pip安装numpy cython
pip安装pystan==2.17.1
验证Pystan安装(https://pystan.readthedocs.io/en/latest/windows.html)
pip安装=0.6
跟随https://github.com/facebook/prophet/issues/1939 即使在安装了Mingw之后,我也遇到了类似的问题
相关问题 更多 >
编程相关推荐