Deployment error installing dependency from .whl file


I am trying to deploy a streamlit app that utilizes a package called TALib. Ta-lib is a financial technical analysis library for performing technical analysis on stocks and things like that.

This package is a finicky package because I can’t get it to install with pip without the .whl file being present, even on my own machine.

In order for me to even install this library, I have to navigate to this website and download the .whl file, and then use pip install ‘C:/TA_Lib-0.4.20-cp39-cp39-win_amd64’, in which case it finally downloads.

I cannot get this package to install in any other way. I foresaw this being an issue when I started creating the app. The problem is that my entire app and previous scripts that were used to build the app functionality are based on the output that this particular ta-lib package provides, and to utilize another library to perform these functions would certainly break my functionality and set me back to square one.

I froze the requirements.txt file out of the environment I’m using in pip and found that talib is acknowledged as such:

‘TA-Lib @ file:///C:/Users/user/GitHub/BackTestingApp/TA_Lib-0.4.20-cp39-cp39-win_amd64.whl’

Is there anyway to make this work with streamlit deployment? I have included the file in the github repository, but I’m not sure if there’s anyway to make the connection.

The error I’m receiving is as follows:

ERROR: TA_Lib-0.4.20-cp39-cp39-win_amd64.whl is not a supported wheel on this platform.

Please let me know if you need any more info from me in relation to this matter.

Thank you!

Hi @clay, welcome to the Streamlit community!

Have you seen this post?


Hello, this worked perfectly! Thank you!