TA Lib / pip error when deploying

Hey I am trying to deploy a simple stock analysis app. I have the requirements.txt file which contains the correct versions of the packages I am using. When I go to deploy I get the following error:

ERROR: Failed building wheel for TA_Lib

Building wheel for peewee (pyproject.toml): started

Building wheel for peewee (pyproject.toml): finished with status โ€˜doneโ€™

Created wheel for peewee: filename=peewee-3.17.0-py3-none-any.whl size=135720 sha256=0f36f838c8c19dfbf7b15ca5202847351cbab60b7716dd325be70a1ff71cec79

Stored in directory: /tmp/pip-ephem-wheel-cache-3x8_n8ho/wheels/02/20/23/74a10d0cd31f5d41c19b92ddf4c138ceff01b9f4675f19dbf5

Successfully built peewee

Failed to build TA_Lib

ERROR: Could not build wheels for TA_Lib, which is required to install pyproject.toml-based projects
WARNING: You are using pip version 22.0.3; however, version 23.3 is available.

You should consider upgrading via the โ€˜/home/adminuser/venv/bin/python -m pip install --upgrade pipโ€™ command.
`
Checking if Streamlit is installed

When I do pip --version I get 23.3 while using python 3.11.

Here are the versions of the packages I am using:
matplotlib==3.8.0
numpy==1.26.1
pandas==2.0.3
pandas_datareader==0.10.0
plotly==5.17.0
prophet==1.1.5
streamlit==1.27.2
TA_Lib==0.4.28
yfinance==0.2.31

Any ideas as to what I can do

Hi,

Installing TA_Lib seems to be a challenge as it also requires the installation of the underlying binary version as the Python one is only a binding to it. Hereโ€™s a related post that may give some starting ideas:

Hope this helps!

There are interesting topics on ta_lib. You can use the search button to find them. Just press that button and type the word ta_lib for example.

image

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.