tick icon indicating copy to clipboard operation
tick copied to clipboard

python3.9 I failed to install tick

Open cug-auto-zp opened this issue 2 years ago • 7 comments

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. ```

cug-auto-zp avatar Apr 07 '22 05:04 cug-auto-zp

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

BEbillionaireUSD avatar Apr 11 '22 13:04 BEbillionaireUSD

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

cug-auto-zp avatar Apr 11 '22 13:04 cug-auto-zp

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

PhilipDeegan avatar Apr 11 '22 13:04 PhilipDeegan

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

cug-auto-zp avatar Oct 11 '22 08:10 cug-auto-zp

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

omkarbajaj073 avatar Oct 15 '22 11:10 omkarbajaj073

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.

jeandut avatar Jan 12 '23 16:01 jeandut

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

cug-auto-zp avatar Jan 12 '23 16:01 cug-auto-zp