Merge pull request #1567 from 1122455801/install.bat

[Mod] install.md
This commit is contained in:
vn.py 2019-04-08 18:12:57 +08:00 committed by GitHub
commit 212ae2c06a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,11 +3,78 @@
## Windows
### 使用VNConda
#### 1.下载VNConda Python 3.7 64位
下载地址如下:[VNConda-2.0.1-Windows-x86_64](https://conda.vnpy.com/VNConda-2.0.1-Windows-x86_64.exe)
 
#### 2.安装VNConda
注意事项第4步会提示用户是否把VNConda注册成默认Python环境若用户存在其他Python环境则都不要勾选反之两个都勾选掉。
![enter image description here](https://vnpy-community.oss-cn-shanghai.aliyuncs.com/forum_experience/yazhang/install.bat/install_VNConda.png "enter image title here")
 
#### 3.登陆VNStation
输入账号密码或者微信扫码登陆VNConda。社区账号通过微信号码可得
![enter image description here](https://vnpy-community.oss-cn-shanghai.aliyuncs.com/forum_experience/yazhang/install.bat/login_VNConda.png "enter image title here")
 
#### 4.使用VNStation
登录后会进入到VNConda的主界面。
![enter image description here](https://vnpy-community.oss-cn-shanghai.aliyuncs.com/forum_experience/yazhang/install.bat/login_VNConda_2.png "enter image title here")
窗口下方有5个选项
- VN Trade Lite直接运行VN Trader (只有CTP接口)
- VN Trader Pro先选择保存相关临时文件的目录再运行VN Trader (接口任选)
- Jupyter Notebook先选择保存相关临时文件的目录再运行Jupyter Notebook
- 提问求助:提出相关问题,管理员会每天定时回复
- 后台更新一键更新VN Station
 
 
### 手动安装
#### 1.下载并安装最新版Anaconda3.7 64位
下载地址如下:[Anaconda Distribution](https://www.anaconda.com/distribution/)
(更轻量的MiniConda地址[MiniConda Distribution](https://docs.conda.io/en/latest/miniconda.html))
 
#### 2.下载并解压vnpy
下载地址如下:[vnpy releases](https://github.com/vnpy/vnpy/releases)
 
#### 3.安装vnpy
双击install.bat一键安装vnpy
- 先安装TA_LIB库和IB API
- 然后安装requirements.txt文件内相关依赖库
- 最后复制vnpy到Anaconda内
 
#### 4.启动VN Trader
在文件夹tests\trader中找到run.py文件。按住“Shift” + 鼠标右键进入cmd窗口输入下面命令即可启动VN Trader。
```
Python run.py
```
## Ubuntu