ubuntu 安装量化交易程序

 安装常见的关键的库的方法

sudo apt-get update
sudo apt-get install python3.9-dev
# 裝talib前要先裝numpy
python3.9 -m pip install numpy -i https://pypi.doubanio.com/simple
wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
tar -xzvf ta-lib-0.4.0-src.tar.gz
cd ta-lib
./configure --prefix=/usr
make
sudo make install
cd ..
pip install TA-Lib

Python——sklearn库的安装

做个笔记,时间久了,都忘了sklearn库的标准名字——scikit-learn。所以,不要用

pip install sklearn

应该是

pip install scikit-learn

https://dashen.wang/6848.html安装ccxt

评论