Merge pull request #1570 from 1122455801/install.md_two
[Mod] install.md
This commit is contained in:
commit
4ce9f9239b
@ -24,15 +24,14 @@
|
||||
|
||||
#### 3.登陆VNStation
|
||||
|
||||
输入账号密码或者微信扫码登陆VNConda。(社区账号通过微信号码可得)
|
||||
输入账号密码或者微信扫码登陆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的主界面。
|
||||
|
||||
登录后会进入到VN Station的主界面。
|
||||
![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个选项:
|
||||
@ -51,19 +50,19 @@
|
||||
|
||||
下载地址如下:[Anaconda Distribution](https://www.anaconda.com/distribution/)
|
||||
|
||||
(更轻量的MiniConda地址:[MiniConda Distribution](https://docs.conda.io/en/latest/miniconda.html))
|
||||
(更轻量的Miniconda地址:[MiniConda Distribution](https://docs.conda.io/en/latest/miniconda.html))
|
||||
|
||||
|
||||
|
||||
#### 2.下载并解压vnpy
|
||||
|
||||
下载地址如下:[vnpy releases](https://github.com/vnpy/vnpy/releases)
|
||||
Windows用户选择zip压缩版本。下载地址如下:[vnpy releases](https://github.com/vnpy/vnpy/releases)
|
||||
|
||||
|
||||
|
||||
#### 3.安装vnpy
|
||||
双击install.bat一键安装vnpy:
|
||||
- 先安装TA_LIB库和IB API
|
||||
- 先安装ta_lib库和ib api
|
||||
- 然后安装requirements.txt文件内相关依赖库
|
||||
- 最后复制vnpy到Anaconda内
|
||||
|
||||
@ -72,21 +71,61 @@
|
||||
#### 4.启动VN Trader
|
||||
在文件夹tests\trader中找到run.py文件。按住“Shift” + 鼠标右键进入cmd窗口,输入下面命令即可启动VN Trader。
|
||||
```
|
||||
Python run.py
|
||||
python run.py
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## Ubuntu
|
||||
|
||||
### 安装脚本
|
||||
|
||||
### TA-Lib
|
||||
|
||||
### 中文编码
|
||||
|
||||
如果是英文系统(如阿里云),请先运行下列命令安装中文编码:
|
||||
### 1. 下载并安装最新版本的Anaconda或者Miniconda (Python 3.7 64位)
|
||||
|
||||
以MiniConda为例,进入已下载好 Miniconda3-latest-Linux-x86_64.sh 所在目录,终端运行如下命令开始安装。
|
||||
```
|
||||
sudo locale-gen zh_CN.GB18030
|
||||
$ bash Miniconda3-latest-Linux-x86_64.sh
|
||||
```
|
||||
|
||||
安装过程中可以一直按“Enter”键继续下去,除了以下这点:
|
||||
|
||||
当询问是否把Miniconda设置为Python 默认环境时,把默认的"no"改成“yes”。原因是Ubuntu 18.04已有自带的Python 3.6与Python 2.7。
|
||||
![enter image description here](https://vnpy-community.oss-cn-shanghai.aliyuncs.com/forum_experience/yazhang/install.bat/install_Miniconda_ubuntu.png "enter image title here")
|
||||
|
||||
|
||||
重启Ubuntu后,打开终端直接输入"python" 然后按“Enter”键: 若出现如下图,则表示成功把Miniconda设置为Python默认环境。
|
||||
![enter image description here](https://vnpy-community.oss-cn-shanghai.aliyuncs.com/forum_experience/yazhang/install.bat/Conda_Python_version.png "enter image title here")
|
||||
|
||||
|
||||
|
||||
### 2. 下载并解压vnpy
|
||||
Linux用户选择tar.gz压缩版本。下载地址如下:[vnpy releases](https://github.com/vnpy/vnpy/releases)
|
||||
|
||||
|
||||
|
||||
### 3. 安装vnpy
|
||||
先安装gcc编译器,用于编译C++类接口文件。在终端中输入以下命令即可。
|
||||
```
|
||||
sudo apt-get install build-essential
|
||||
```
|
||||
|
||||
|
||||
然后在vnpy根目录打开终端,输入下面命令一键安装vnpy。
|
||||
```
|
||||
bash install.sh
|
||||
```
|
||||
|
||||
安装过程分为4步:
|
||||
- 下载并安装ta_lib库和numpy
|
||||
- 安装requirements.txt文件内相关依赖库
|
||||
- 安装中文编码(针对英文系统)
|
||||
- 复制vnpy到Anaconda内(若是在虚拟机上运行,需要把内存调至4g,否则报错)
|
||||
|
||||
|
||||
|
||||
### 4.启动VN Trader
|
||||
在文件夹tests\trader中找到run.py文件。右键进入终端,输入下面命令即可启动VN Trader。
|
||||
```
|
||||
python run.py
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user