0

I have experiencing issues with the well-known and troubling installation of TA-lib library. However, even if the issue is well known, I saw just 1 post talking about installation on Google Cloud, and my problem is a little bit different from that issue. After following the instructions on TA-lib Github README attached below

Download ta-lib-0.4.0-src.tar.gz and:

$ untar and cd
$ ./configure --prefix=/usr
$ make
$ sudo make install

I am trying to pip install TA-lib. When I input

pip3 install TA-lib`

I see

Collecting Ta-lib
 Using cached https://files.pythonhosted.org/packages/90/05/d4c6a778d7a7de0be366bc4a850b4ffaeac2abad927f95fa8ba6f355a082/TA-Lib-0.4.17.tar.gz
Requirement already satisfied: numpy in /home/franc_paoli/.local/lib/python3.5/site-packages (from Ta-lib) (1.14.5)
Building wheels for collected packages: Ta-lib
  Running setup.py bdist_wheel for Ta-lib ... -

and then the command window tries to load infinitely.. without any response. Do you think it's just slow and I should wait (1h+) or something is going wrong within the procedure?

phd
  • 82,685
  • 13
  • 120
  • 165
Fr1
  • 173
  • 9

2 Answers2

1

It's entirely possible that a Python package could take an hour or more to install, if it has a lot of C code in it that it needs to build. What it might be doing behind that Running setup.py bdist_wheel for Ta-lib ... line is compiling things.

If you want to check on it, you can open another terminal window/tab while pip3 is running, connect to the server again, and run top to have a look at all the running processes. Once in there, you can press c to see the commands that are running, or q to quit out. If there's a Python or GCC or G++ process taking a lot of CPU, it's probably doing something. If nothing much appears to be going on, something may have gone wrong.

Note, though, that you aren't installing the same TA-lib you downloaded and manually built. When you do it through Pip, it is downloading and installing https://files.pythonhosted.org/packages/90/05/d4c6a778d7a7de0be366bc4a850b4ffaeac2abad927f95fa8ba6f355a082/TA-Lib-0.4.17.tar.gz, and doing all the ./configure and make over again for you.

interfect
  • 2,665
  • 1
  • 20
  • 35
  • 1
    Thanks a lot, it took over 1h to install and at the end I received the notification that the memory on the machine was over. So I had to modify the memory capacity associated to the instance and retart the installation following https://github.com/mrjbq7/ta-lib/issues/179 . In the end, it was fine and TA-lib now appears in my pip list – Fr1 Aug 28 '18 at 18:17
0

Depending on VM resources it might take a while, I would wait to make sure. Make sure you have permissions for pip3 command, if not you need to add "sudo" prefix for command.

Subhash
  • 9
  • 2