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
484 stars 105 forks source link

Installation problem #427

Open halehdizaji opened 4 years ago

halehdizaji commented 4 years ago

Hello, I have some installation problems with tick library. I'm trying to install tick on ubuntu 18.04. I followed the installation steps, but when I executed the command "sudo pip3 install tick" after some steps it wrote "running setup.py install for tick..." and then hung up there and didn't end the installation and I have to restart ubuntu to stop it. I will appreciate a lot if someone can guide me. Thank you

jdeschena commented 4 years ago

Hello,

I ran into the same issue, and it even froze my computer sometimes (left it running whole night to be sure). I also used ubuntu 18.04 when this occured (probably during c++ code compilation).

PhilipDeegan commented 4 years ago

there is a pip wheel available for python 3.6 and 3.7 for linux.

if it is trying to build from source you may want to check you have enough RAM

halehdizaji commented 4 years ago

Hi, Thank you @Dekken . My RAM is 6 G and I think that is enough for it. @deschena : I also think that it takes a long time while running gcc compiler. I even followed manual installation method and it didn't solve the problem.. I don't know what to do..

PhilipDeegan commented 4 years ago

I think distutils was updated recently to use more threads by default, so it's possible 6GB is not enough one thread can require 2GB+

if you are using python 3.7 you should be able to install a precompiled version from pip

see: https://pypi.org/project/tick/#files

halehdizaji commented 4 years ago

Thank you very much @Dekken . This may help me. :)

halehdizaji commented 4 years ago

Hi, I have python 3.8 installed in my system and since I have problems compiling tick, I appreciate a lot if someone shares a compiled version of tick for python 3.8, if someone has it.

Thanks

sumau commented 3 years ago

@halehdizaji did you try using "pipenv install tick"? I just did a fresh install and even though it took a while the build succeeded and installed with python 3.8.5 ( I let pipenv choose the python version)

halehdizaji commented 3 years ago

Dear @sumau . Thanks for your advice, I haven't tried this command. Actually I changed my system and the problem got solved. But It's good to know. :)

p.s. Excuse me for the very late reply.