This commit is contained in:
msincenselee 2018-10-20 15:01:57 +08:00
parent 13329202f6
commit bcd20b98af

View File

@ -4,38 +4,62 @@
# 安装
1、下载 anaconda 3.6得64位安装包[trade用户]
1) wget -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.2.0-Linux-x86_64.sh
2) sh Anaconda3-5.2.0-Linux-x86_64.sh
安装过程输入yes同意安装目录 /home/trade/Anaconda3, 同意加入到trade这个用户得shell路径
3) 退出当前trade用户重新登录
4) 更新一下 pip install --upgrade pip
2、 添加清华同方得源到anaconda中. (如果服务器在海外,就免拉)[trade用户]
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
3、创建python 3.5版本得环境。为何不用3.6?我还没搞掂)[trade用户]
conda create --name py35 python=3.5
激活py35
source activate py35
4、更新ubuntu得开发环境 [ root用户 ]
apt-get -y install gcc
apt-get -y install make
apt-get -y install cmake
apt-get -y install libssl-dev
apt-get -y install freetds-dev
apt-get -y install python-dev
apt-get -y install mpi-default-dev
apt-get -y install libicu-dev
apt-get -y install libbz2-dev
apt-get -y install libboost-thread-dev
apt-get -y install libboost-python-dev
apt-get -y install cython
apt-get -y install nodejs
apt-get -y update
apt-get -y install build-essential
apt-get -y install unzip
5、boost得安装( 仅用于支持CTP的接口)[ root用户 ]
@ -73,22 +97,24 @@
检查 /usr/local下include/boost, lib/libboos_python3.so等是否存在
6、安装talib [trade用户]
conda install -c quantopian ta-lib=0.4.9
conda install -c quantopian ta-lib=0.4.9
7、下载vnpy [trade用户]
wget -c https://github.com/msincenselee/vnpy/archive/master.zip
unzip master.zip
wget -c https://github.com/msincenselee/vnpy/archive/master.zip
cd vnpy-master
unzip master.zip
安装 所有前置数据包
cd vnpy-master
pip install -r requirements.txt
安装 所有前置数据包
安装pyqt
pip install -r requirements.txt
conda install pyqt
安装pyqt
conda install pyqt
8、重新编译一次 CTP API(CentOS下无需重新编译[trade用户]
@ -100,4 +126,10 @@
如果你全程不用trade用户得话你需要修改 CMakefile.txt里面得路径哦,把/home/trade 修改为/root
pip uninstall websocket; pip uninstall websocket-client; pip install websocket-client.
9、数字货币方面[trade用户]
pip uninstall websocket;
pip uninstall websocket-client;
pip install websocket-client.