vnpy/install.sh

33 lines
682 B
Bash
Raw Normal View History

2019-03-19 02:45:48 +00:00
#!/usr/bin/env bash
2019-04-14 15:10:26 +00:00
python=$1
pip=$2
[[ -z $python ]] && python=python
[[ -z $pip ]] && pip=pip
# Get and build ta-lib
pushd /tmp
wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
tar -xf ta-lib-0.4.0-src.tar.gz
cd ta-lib
./configure --prefix=/usr
make
sudo make install
popd
# old versions of ta-lib imports numpy in setup.py
2019-04-14 15:10:26 +00:00
$pip install numpy
2019-04-03 04:46:30 +00:00
# Install extra packages
2019-04-14 15:10:26 +00:00
$pip install ta-lib
$pip install https://vnpy-pip.oss-cn-shanghai.aliyuncs.com/colletion/ibapi-9.75.1-py3-none-any.whl
2019-04-03 04:46:30 +00:00
2019-03-19 02:45:48 +00:00
# Install Python Modules
2019-04-14 15:10:26 +00:00
$pip install -r requirements.txt
2019-02-26 02:31:23 +00:00
# Install local Chinese language environment
sudo locale-gen zh_CN.GB18030
2019-03-19 02:45:48 +00:00
# Install vn.py
2019-04-14 15:10:26 +00:00
$pip install .