Step 1 在docker安裝python ta-lib前,需要先安裝C環境。 Step 2 載ta-lib-0.4.0-src.tar.gz Step 3 接著make && make install Step 4 最後再/usr/bin/python3.9 -m pip install ta-lib
安裝順序
apt-get update
apt-get install gcc
apt-get install unixodbc-dev -y
apt-get install libxml2-dev libxslt1-dev
apt-get install libatlas-base-dev
apt install python3.9-dev
tar -xzf ta-lib-0.4.0-src.tar.gz
cd ta-lib/
./configure –prefix=/usr
make
sudo make install
/usr/bin/python3.9 -m pip install ta-lib