-1

(对不起,我不擅长英语)我在安装 fbprophet for windows 命令时出错。我已经安装了 pystan 和 cython。

我使用的是 Windows 10,python 3.9 版本。

也许,我的编译器有问题吗?

错误注释是(错误的韩语并不是很重要的事情),-->

=== 使用轮子构建时出错 === 错误:命令出错,退出状态为 1:命令:'c:\users\kstar\appdata\local\programs\python\python39\python.exe' -u -c'导入 io、os、sys、setuptools、tokenize;sys.argv[0] = '"'"'C:\Users\kstar\AppData\Local\Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78\setup.py'"'"'; file ='"'"'C:\Users\kstar\AppData\Local\Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78\setup.py'"'"';f = getattr(tokenize, '"'"'open' "'"', open)( file ) if os.path.exists( file ) else io.StringIO('"'"'from setuptools import setup; setup()'"'", '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\kstar\AppData\Local\Temp\pip-wheel-b98qkky1' cwd: C:\Users\kstar\AppData\Local \Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78
完整输出(44 行): running bdist_wheel running build running build_py Creating build Creating build\lib Creating build\lib\fbprophet Creating build\lib\fbprophet\stan_model Traceback(最近一次调用最后) : . . .

=== 运行 setup.py 时出错 === 错误:命令出错,退出状态为 1:命令:c:\users\kstar\appdata\local\programs\python\python39\python.exe -u -c import io ,操作系统,系统,设置工具,标记化;sys.argv[0] = C:\Users\kstar\AppData\Local\Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78\setup.py;file =C:\Users\kstar\AppData\Local\Temp\pip-install-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78\setup.py;f = getattr(tokenize, '"'"'open, open)( file ) if os.path. exists( file ) else io.StringIO('"'"'from setuptools import setup; setup());code = f.read().replace('"'"'\r\n'"'"', ' "'"'\n'"'"');f.close();exec(compile(code,, '"'"'exec'"'"'))' install --record 'C:\Users\kstar\AppData\Local\Temp\pip-record-avm6oqpp\install-record.txt' --single-version -externally-managed --compile --install-headers 'c:\users\kstar\appdata\local\programs\python\python39\Include\fbprophet' cwd: C:\Users\kstar\AppData\Local\Temp\pip -安装-la81h33s\fbprophet_b85d314a94fb4910b19f0b36b012fb78
完整输出(288 行): 运行 install running build running build_py 创建 build 创建 build\lib 创建 build\lib\fbprophet 创建 build\lib\fbprophet\stan_model 信息:pystan:为模型 anon_model_f5236004a3fd5b8429270d00efcc0cf9 现在编译 C++ 代码。警告:pystan:MSVC 编译器不受支持警告消息:使用已弃用的 NumPy API,使用 #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 禁用它

4

1 回答 1

0

以下对我有用:

pip install localpip 
localpip install fbprophet

from fbprophet import Prophet
于 2021-08-09T22:21:52.107 回答