【问题标题】:I am trying to install prophet library , But getting error .How i fix this error?我正在尝试安装先知库,但出现错误。我如何解决此错误?
【发布时间】:2020-02-15 10:58:55
【问题描述】:
 ERROR: Command errored out with exit status 1:
   command: 'C:\Anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-o3yl73zr\\fbprophet\\setup.py'"'"'; __file__='"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-o3yl73zr\\fbprophet\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\hp\AppData\Local\Temp\pip-wheel-3503otpz' --python-tag cp37
       cwd: C:\Users\hp\AppData\Local\Temp\pip-install-o3yl73zr\fbprophet\
  Complete output (12 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib
  creating build\lib\fbprophet
  creating build\lib\fbprophet\stan_model
  INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_db8febf10f23d7fa27a62fbcfd7f17b2 NOW.
  WARNING:pystan:MSVC compiler is not supported
  stanfit4anon_model_db8febf10f23d7fa27a62fbcfd7f17b2_3952845139843312099.cpp
  C:\Anaconda\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.23.28105\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

  ERROR: Failed building wheel for fbprophet
    ERROR: Command errored out with exit status 1:
     command: 'C:\Anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-o3yl73zr\\fbprophet\\setup.py'"'"'; __file__='"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-o3yl73zr\\fbprophet\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\hp\AppData\Local\Temp\pip-record-_iv7s74v\install-record.txt' --single-version-externally-managed --compile
         cwd: C:\Users\hp\AppData\Local\Temp\pip-install-o3yl73zr\fbprophet\
    Complete output (12 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib
    creating build\lib\fbprophet
    creating build\lib\fbprophet\stan_model
    INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_db8febf10f23d7fa27a62fbcfd7f17b2 NOW.
    WARNING:pystan:MSVC compiler is not supported
    stanfit4anon_model_db8febf10f23d7fa27a62fbcfd7f17b2_8412490456183199120.cpp
    C:\Anaconda\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.23.28105\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

ERROR: Command errored out with exit status 1: 'C:\Anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-o3yl73zr\\fbprophet\\setup.py'"'"'; __file__='"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-o3yl73zr\\fbprophet\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\hp\AppData\Local\Temp\pip-record-_iv7s74v\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

【问题讨论】:

    标签: python anaconda forecasting facebook-prophet


    【解决方案1】:

    也许你需要看这里:https://pystan.readthedocs.io/en/latest/windows.html

    并安装网站上显示的python windows编译器

    【讨论】:

    • 成功安装先知后,我在导入过程中收到此错误: from fbprophet import Prophet ImportError: cannot import name 'easter' from 'holidays' (C:\Anaconda\lib\site-包\holidays_init_.py)
    猜你喜欢
    • 2020-02-26
    • 2018-12-25
    • 2022-01-25
    • 2023-01-04
    • 1970-01-01
    • 2023-02-14
    • 1970-01-01
    • 2023-03-18
    • 2019-03-23
    相关资源
    最近更新 更多