【问题标题】:Trying to install pyramid-arima in a Jupyter Notebook and getting some errors尝试在 Jupyter Notebook 中安装 pyramid-arima 并出现一些错误
【发布时间】:2021-07-19 14:00:12
【问题描述】:

我正在尝试运行它。

pip install pyramid-arima

然后,像这样调用库。

import pyramid
from pyramid.arima import auto_arima

整个堆栈跟踪非常庞大。我不知道在这里复制/粘贴所有内容是否有意义,但似乎这些是错误。

Building wheels for collected packages: pyramid-arima
  Building wheel for pyramid-arima (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-220wpwid/pyramid-arima_40cd20c892a148f5bdcfdb35358beede/setup.py'"'"'; __file__='"'"'/tmp/pip-install-220wpwid/pyramid-arima_40cd20c892a148f5bdcfdb35358beede/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, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-iic20x9e
       cwd: /tmp/pip-install-220wpwid/pyramid-arima_40cd20c892a148f5bdcfdb35358beede/
  Complete output (263 lines):
  Partial import of pyramid during the build process.
  Requirements: ['Cython>=0.23', 'numpy>=1.10', 'scipy>=0.9', 'scikit-learn>=0.17', 'pandas>=0.19', 'statsmodels>=0.9.0']
  Adding extra setuptools args
  blas_opt_info:
  blas_mkl_info:
  customize UnixCCompiler
    libraries mkl_rt not found in ['/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
    NOT AVAILABLE
  
  blis_info:
    libraries blis not found in ['/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
    NOT AVAILABLE
  
  openblas_info:
  C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC
  
  creating /tmp/tmpqqj97lwv/tmp
  creating /tmp/tmpqqj97lwv/tmp/tmpqqj97lwv
  compile options: '-c'
  gcc: /tmp/tmpqqj97lwv/source.c
  gcc -pthread /tmp/tmpqqj97lwv/tmp/tmpqqj97lwv/source.o -L/usr/lib64 -lopenblas -o /tmp/tmpqqj97lwv/a.out
    FOUND:
      libraries = ['openblas', 'openblas']
      library_dirs = ['/usr/lib64']
      language = c
      define_macros = [('HAVE_CBLAS', None)]
  
    FOUND:
      libraries = ['openblas', 'openblas']
      library_dirs = ['/usr/lib64']
      language = c
      define_macros = [('HAVE_CBLAS', None)]
  
  running bdist_wheel
  running build
  running config_cc
  unifing config_cc, config, build_clib, build_ext, build commands --compiler options
  running config_fc
  unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
  running build_src
  build_src
  building extension "pyramid.__check_build._check_build" sources
  building extension "pyramid.arima._arima" sources
  build_src: building npy-pkg config files
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.8
  creating build/lib.linux-x86_64-3.8/pyramid
  copying pyramid/__init__.py -> build/lib.linux-x86_64-3.8/pyramid
  copying pyramid/_config.py -> build/lib.linux-x86_64-3.8/pyramid
  copying pyramid/setup.py -> build/lib.linux-x86_64-3.8/pyramid
  creating build/lib.linux-x86_64-3.8/pyramid/__check_build
  copying pyramid/__check_build/__init__.py -> build/lib.linux-x86_64-3.8/pyramid/__check_build
  copying pyramid/__check_build/setup.py -> build/lib.linux-x86_64-3.8/pyramid/__check_build
  creating build/lib.linux-x86_64-3.8/pyramid/__check_build/tests
  copying pyramid/__check_build/tests/__init__.py -> build/lib.linux-x86_64-3.8/pyramid/__check_build/tests
  copying pyramid/__check_build/tests/test_check_build.py -> build/lib.linux-x86_64-3.8/pyramid/__check_build/tests
  creating build/lib.linux-x86_64-3.8/pyramid/_build_utils
  copying pyramid/_build_utils/__init__.py -> build/lib.linux-x86_64-3.8/pyramid/_build_utils
  creating build/lib.linux-x86_64-3.8/pyramid/_build_utils/tests
  copying pyramid/_build_utils/tests/__init__.py -> build/lib.linux-x86_64-3.8/pyramid/_build_utils/tests
  creating build/lib.linux-x86_64-3.8/pyramid/compat
  copying pyramid/compat/__init__.py -> build/lib.linux-x86_64-3.8/pyramid/compat
  copying pyramid/compat/python.py -> build/lib.linux-x86_64-3.8/pyramid/compat
  copying pyramid/compat/pandas.py -> build/lib.linux-x86_64-3.8/pyramid/compat
  copying pyramid/compat/numpy.py -> build/lib.linux-x86_64-3.8/pyramid/compat
  copying pyramid/compat/matplotlib.py -> build/lib.linux-x86_64-3.8/pyramid/compat
  creating build/lib.linux-x86_64-3.8/pyramid/compat/tests
  copying pyramid/compat/tests/__init__.py -> build/lib.linux-x86_64-3.8/pyramid/compat/tests
  copying pyramid/compat/tests/test_compat.py -> build/lib.linux-x86_64-3.8/pyramid/compat/tests
  creating build/lib.linux-x86_64-3.8/pyramid/datasets
  copying pyramid/datasets/__init__.py -> build/lib.linux-x86_64-3.8/pyramid/datasets
  copying pyramid/datasets/woolyrnq.py -> build/lib.linux-x86_64-3.8/pyramid/datasets
  copying pyramid/datasets/wineind.py -> build/lib.linux-x86_64-3.8/pyramid/datasets
  copying pyramid/datasets/lynx.py -> build/lib.linux-x86_64-3.8/pyramid/datasets
  copying pyramid/datasets/heartrate.py -> build/lib.linux-x86_64-3.8/pyramid/datasets
  creating build/lib.linux-x86_64-3.8/pyramid/utils
  copying pyramid/utils/__init__.py -> build/lib.linux-x86_64-3.8/pyramid/utils
  copying pyramid/utils/wrapped.py -> build/lib.linux-x86_64-3.8/pyramid/utils
  copying pyramid/utils/visualization.py -> build/lib.linux-x86_64-3.8/pyramid/utils
  copying pyramid/utils/testing.py -> build/lib.linux-x86_64-3.8/pyramid/utils
  copying pyramid/utils/metaestimators.py -> build/lib.linux-x86_64-3.8/pyramid/utils
  copying pyramid/utils/array.py -> build/lib.linux-x86_64-3.8/pyramid/utils
  creating build/lib.linux-x86_64-3.8/pyramid/utils/tests
  copying pyramid/utils/tests/__init__.py -> build/lib.linux-x86_64-3.8/pyramid/utils/tests
  copying pyramid/utils/tests/test_wrapped.py -> build/lib.linux-x86_64-3.8/pyramid/utils/tests
  copying pyramid/utils/tests/test_vis.py -> build/lib.linux-x86_64-3.8/pyramid/utils/tests
  copying pyramid/utils/tests/test_testing.py -> build/lib.linux-x86_64-3.8/pyramid/utils/tests
  copying pyramid/utils/tests/test_meta.py -> build/lib.linux-x86_64-3.8/pyramid/utils/tests
  copying pyramid/utils/tests/test_array.py -> build/lib.linux-x86_64-3.8/pyramid/utils/tests
  creating build/lib.linux-x86_64-3.8/pyramid/arima
  copying pyramid/arima/__init__.py -> build/lib.linux-x86_64-3.8/pyramid/arima
  copying pyramid/arima/warnings.py -> build/lib.linux-x86_64-3.8/pyramid/arima
  copying pyramid/arima/utils.py -> build/lib.linux-x86_64-3.8/pyramid/arima
  copying pyramid/arima/stationarity.py -> build/lib.linux-x86_64-3.8/pyramid/arima
  copying pyramid/arima/setup.py -> build/lib.linux-x86_64-3.8/pyramid/arima
  copying pyramid/arima/seasonality.py -> build/lib.linux-x86_64-3.8/pyramid/arima
  copying pyramid/arima/auto.py -> build/lib.linux-x86_64-3.8/pyramid/arima
  copying pyramid/arima/arima.py -> build/lib.linux-x86_64-3.8/pyramid/arima
  copying pyramid/arima/approx.py -> build/lib.linux-x86_64-3.8/pyramid/arima
  creating build/lib.linux-x86_64-3.8/pyramid/arima/tests
  copying pyramid/arima/tests/__init__.py -> build/lib.linux-x86_64-3.8/pyramid/arima/tests
  copying pyramid/arima/tests/test_stationarity.py -> build/lib.linux-x86_64-3.8/pyramid/arima/tests
  copying pyramid/arima/tests/test_c_arima.py -> build/lib.linux-x86_64-3.8/pyramid/arima/tests
  copying pyramid/arima/tests/test_arima.py -> build/lib.linux-x86_64-3.8/pyramid/arima/tests
  copying pyramid/arima/tests/test_approx.py -> build/lib.linux-x86_64-3.8/pyramid/arima/tests
  running build_ext
  customize UnixCCompiler
  customize UnixCCompiler using build_ext
  building 'pyramid.__check_build._check_build' extension
  compiling C sources
  C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC
  
  creating build/temp.linux-x86_64-3.8/pyramid
  creating build/temp.linux-x86_64-3.8/pyramid/__check_build
  compile options: '-I/home/ibv_pmo_rstudio/.local/lib/python3.8/site-packages/numpy/core/include -I/home/ibv_pmo_rstudio/.local/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c'
  gcc: pyramid/__check_build/_check_build.c
  gcc -pthread -shared -Wl,-z,relro -Wl,-z,now -g -Wl,-z,relro -Wl,-z,now -g build/temp.linux-x86_64-3.8/pyramid/__check_build/_check_build.o -L/usr/lib64 -o build/lib.linux-x86_64-3.8/pyramid/__check_build/_check_build.cpython-38-x86_64-linux-gnu.so
  building 'pyramid.arima._arima' extension
  compiling C sources
  C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC
  
  creating build/temp.linux-x86_64-3.8/pyramid/arima
  compile options: '-DHAVE_CBLAS -I/home/ibv_pmo_rstudio/.local/lib/python3.8/site-packages/numpy/core/include -Ipyramid/arima/_arima_fast_helpers.h -I/home/ibv_pmo_rstudio/.local/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c'
  gcc: pyramid/arima/_arima.c
  cc1: warning: pyramid/arima/_arima_fast_helpers.h: not a directory
  In file included from /home/ibv_pmo_rstudio/.local/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822,
                   from /home/ibv_pmo_rstudio/.local/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                   from /home/ibv_pmo_rstudio/.local/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                   from pyramid/arima/_arima.c:308:
  /home/ibv_pmo_rstudio/.local/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
   #warning "Using deprecated NumPy API, disable it with " \
    ^~~~~~~
  pyramid/arima/_arima.c: In function ‘PyInit__arima’:
  pyramid/arima/_arima.c:25487:3: warning: ‘tp_print’ is deprecated [-Wdeprecated-declarations]
     __pyx_type___pyx_array.tp_print = 0;
     ^~~~~~~~~~~~~~~~~~~~~~
  In file included from /usr/include/python3.8/object.h:746,
                   from /usr/include/python3.8/pytime.h:6,
                   from /usr/include/python3.8/Python.h:85,
                   from pyramid/arima/_arima.c:38:
  /usr/include/python3.8/cpython/object.h:260:30: note: declared here
       Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
                                ^~~~~~~~
  pyramid/arima/_arima.c:25491:3: warning: ‘tp_print’ is deprecated [-Wdeprecated-declarations]
     __pyx_type___pyx_MemviewEnum.tp_print = 0;
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /usr/include/python3.8/object.h:746,
                   from /usr/include/python3.8/pytime.h:6,
                   from /usr/include/python3.8/Python.h:85,
                   from pyramid/arima/_arima.c:38:
  /usr/include/python3.8/cpython/object.h:260:30: note: declared here
       Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
                                ^~~~~~~~
  pyramid/arima/_arima.c:25502:3: warning: ‘tp_print’ is deprecated [-Wdeprecated-declarations]
     __pyx_type___pyx_memoryview.tp_print = 0;
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /usr/include/python3.8/object.h:746,
                   from /usr/include/python3.8/pytime.h:6,
                   from /usr/include/python3.8/Python.h:85,
                   from pyramid/arima/_arima.c:38:
  /usr/include/python3.8/cpython/object.h:260:30: note: declared here
       Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
                                ^~~~~~~~
  pyramid/arima/_arima.c:25511:3: warning: ‘tp_print’ is deprecated [-Wdeprecated-declarations]
     __pyx_type___pyx_memoryviewslice.tp_print = 0;
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /usr/include/python3.8/object.h:746,
                   from /usr/include/python3.8/pytime.h:6,
                   from /usr/include/python3.8/Python.h:85,
                   from pyramid/arima/_arima.c:38:
  /usr/include/python3.8/cpython/object.h:260:30: note: declared here
       Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
                                ^~~~~~~~
  pyramid/arima/_arima.c: In function ‘__Pyx__ExceptionSave’:
  pyramid/arima/_arima.c:26129:21: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
       *type = tstate->exc_type;
                       ^~~~~~~~
                       curexc_type
  pyramid/arima/_arima.c:26130:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
       *value = tstate->exc_value;
                        ^~~~~~~~~
                        curexc_value
  pyramid/arima/_arima.c:26131:19: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
       *tb = tstate->exc_traceback;
                     ^~~~~~~~~~~~~
                     curexc_traceback
  pyramid/arima/_arima.c: In function ‘__Pyx__ExceptionReset’:
  pyramid/arima/_arima.c:26138:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
       tmp_type = tstate->exc_type;
                          ^~~~~~~~
                          curexc_type
  pyramid/arima/_arima.c:26139:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
       tmp_value = tstate->exc_value;
                           ^~~~~~~~~
                           curexc_value
  pyramid/arima/_arima.c:26140:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
       tmp_tb = tstate->exc_traceback;
                        ^~~~~~~~~~~~~
                        curexc_traceback
  pyramid/arima/_arima.c:26141:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
       tstate->exc_type = type;
               ^~~~~~~~
               curexc_type
  pyramid/arima/_arima.c:26142:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
       tstate->exc_value = value;
               ^~~~~~~~~
               curexc_value
  pyramid/arima/_arima.c:26143:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
       tstate->exc_traceback = tb;
               ^~~~~~~~~~~~~
               curexc_traceback
  pyramid/arima/_arima.c: In function ‘__Pyx__GetException’:
  pyramid/arima/_arima.c:26198:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
       tmp_type = tstate->exc_type;
                          ^~~~~~~~
                          curexc_type
  pyramid/arima/_arima.c:26199:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
       tmp_value = tstate->exc_value;
                           ^~~~~~~~~
                           curexc_value
  pyramid/arima/_arima.c:26200:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
       tmp_tb = tstate->exc_traceback;
                        ^~~~~~~~~~~~~
                        curexc_traceback
  pyramid/arima/_arima.c:26201:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
       tstate->exc_type = local_type;
               ^~~~~~~~
               curexc_type
  pyramid/arima/_arima.c:26202:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
       tstate->exc_value = local_value;
               ^~~~~~~~~
               curexc_value
  pyramid/arima/_arima.c:26203:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
       tstate->exc_traceback = local_tb;
               ^~~~~~~~~~~~~
               curexc_traceback
  pyramid/arima/_arima.c: In function ‘__Pyx__ExceptionSwap’:
  pyramid/arima/_arima.c:27811:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
       tmp_type = tstate->exc_type;
                          ^~~~~~~~
                          curexc_type
  pyramid/arima/_arima.c:27812:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
       tmp_value = tstate->exc_value;
                           ^~~~~~~~~
                           curexc_value
  pyramid/arima/_arima.c:27813:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
       tmp_tb = tstate->exc_traceback;
                        ^~~~~~~~~~~~~
                        curexc_traceback
  pyramid/arima/_arima.c:27814:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
       tstate->exc_type = *type;
               ^~~~~~~~
               curexc_type
  pyramid/arima/_arima.c:27815:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
       tstate->exc_value = *value;
               ^~~~~~~~~
               curexc_value
  pyramid/arima/_arima.c:27816:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
       tstate->exc_traceback = *tb;
               ^~~~~~~~~~~~~
               curexc_traceback
  error: Command "gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_CBLAS -I/home/ibv_pmo_rstudio/.local/lib/python3.8/site-packages/numpy/core/include -Ipyramid/arima/_arima_fast_helpers.h -I/home/ibv_pmo_rstudio/.local/lib/python3.8/site-packages/numpy/core/include -I/usr/include/python3.8 -c pyramid/arima/_arima.c -o build/temp.linux-x86_64-3.8/pyramid/arima/_arima.o -MMD -MF build/temp.linux-x86_64-3.8/pyramid/arima/_arima.o.d" failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for pyramid-arima
  Running setup.py clean for pyramid-arima

我有两个问题。

  1. 有没有办法进行 pip 安装并要求 Python/Jupyter 自动安装所有必需的依赖项?

  2. 有没有更简单的方法在主要由位置和利润随时间变化的数据集上运行 ARIMA 模型?

【问题讨论】:

    标签: python python-3.x arima pyramid-arima


    【解决方案1】:

    看起来您已经编译了 arima 的依赖项。您可能想使用Anaconda 之类的东西并启用conda-forge 以使用conda 安装它。请注意,现在在 conda 上将其命名为 pmdarima

    这将直接安装预编译的包,而不是在本地编译它们。

    使用 conda,您还可以创建环境文件,并告诉 conda 安装everything in this file,当您想要共享它时,这很容易。我想这回应了 1。使用 pip 你可以做类似的事情,但使用 pip install -r requirements.txt

    出于安全原因,当您启动笔记本时,Jupyter 本身不会安装包。

    对于 2),您可能需要单独询问,因为人们会卡在安装部分,直到最后才阅读。

    【讨论】:

    • 这些命名约定似乎经常改变。您的建议似乎奏效了!谢谢!
    • 很高兴听到。是的,命名约定可能很难。有时是出于良好的技术原因,有时是出于法律原因。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-11
    • 2022-10-07
    • 2020-06-08
    • 1970-01-01
    • 2021-07-24
    相关资源
    最近更新 更多