X-DataInitiative / tick

Module for statistical learning, with a particular emphasis on time-dependent modelling
https://x-datainitiative.github.io/tick/
BSD 3-Clause "New" or "Revised" License
480 stars 105 forks source link

python3.9 I failed to install tick #487

Open cug-auto-zp opened 2 years ago

cug-auto-zp commented 2 years ago

hello Can you help me? pip install tick failed

windows python 3.9 PyCharm

Here is the CMD error message


  Building wheel for tick (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [4 lines of output]
      Error executing check_cblas.py - cblas not found
      running bdist_wheel
      running build
      error: [WinError 2] 系统找不到指定的文件。
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for tick
  Running setup.py clean for tick
Failed to build tick
Installing collected packages: tick
  Running setup.py install for tick ... error
  error: subprocess-exited-with-error

  × Running setup.py install for tick did not run successfully.
  │ exit code: 1
  ╰─> [10 lines of output]
      Error executing check_cblas.py - cblas not found
      running install
      d:\programs\python39\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build_ext
      INFO: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      building 'tick\array\build._array' extension
      swigging lib/swig/tick/array/array_module.i to lib/swig/tick/array/array_module_wrap.cpp
      swig.exe -python -py3 -c++ -Ilib/swig -Ilib/include -outdir tick\array\build -DDEBUG_COSTLY_THROW -o lib/swig/tick/array/array_module_wrap.cpp lib/swig/tick/array/array_module.i
      error: command 'swig.exe' failed: None
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> tick

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure. ```
BEbillionaireUSD commented 2 years ago

I met the same issue as yours. After I switch to python3.7 on a Linux system, it succeeds.

cug-auto-zp commented 2 years ago

Thank you send E-mail to me.l am busy in studying .lf l read it,l will reply you  the first time.

PhilipDeegan commented 2 years ago

sorry but there is no release for python3.9 on pypi just yet

cug-auto-zp commented 1 year ago

Thank you send E-mail to me.l am busy in studying .lf l read it,l will reply you  the first time.

omkarbajaj073 commented 1 year ago

Is there any way I can run tick on Python 3.9 @PhilipDeegan ? It's sorta necessary, and kinda urgent, for me. Is there any way around this? I tried to install it on Python 3.8 and then copying it from the site-packages of Python 3.8 into a target directory (on my desktop) with all the dependencies of tick (I verified that the dependencies were properly installed into this directory, so the problem is not there). Then I tried to import tick from a python shell in the target directory in a Python 3.9 venv, and got the error in #68 .

I'm running Windows 11, and am facing the same issues on Ubuntu 20.04 WSL. I'm open to any solution (even one that may compromize on the performance of the library a little), not necessarily involving the full tick library. I only need SimuHawkesExpKernels and HawkesExpKern from tick.hawkes

jeandut commented 1 year ago

Hello, thanks for the great package ! You should really consider supporting newer versions of Python as it is breaking lots of workflows. Your survival utils are really good and it is a shame to have to reimplement them by hand.

cug-auto-zp commented 1 year ago

Thank you send E-mail to me.l am busy in studying .lf l read it,l will reply you  the first time.