Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Deploy vn.py development framework on windows7sp1x64 platform

2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

First, install windows7sp1x64

Download and install Windows6.1-KB4019990-x64 on the official website

Download and install Microsoft .NET Framework 4.7 on the official website

Download and install vc_redist2015.x64 on the official website

Open https://github.com/vnpy/vnpy/blob/dev/init.bat and install according to the content of init.bat

1. Install chocolatey (similar to yum in centos)

"% SystemRoot%\ System32\ WindowsPowerShell\ v1.0\ powershell.exe"-NoProfile-InputFormat None-ExecutionPolicy Bypass-Command "iex ((New-Object System.Net.WebClient) .DownloadString ('https://chocolatey.org/install.ps1'))" & & SET" PATH=%PATH%;%ALLUSERSPROFILE%\ chocolatey\ bin "

2. Install Anaconda through chocolatey

Choco install anaconda2-- version 4.0.0-- x86-y-- ignorechecksum-- params= "/ AddToPath=1'"

Setx PATH "% PATH%;C:\ Program Files\ Anaconda2\; C:\ Program Files\ Anaconda2\ Scripts\"

3. Install VC Redist

Choco install vcredist2013-x86-y

4. Install Git

Choco install git-y

5. Download vn.py

Call refreshenv

Cd c:\

Git clone "https://github.com/vnpy/vnpy.git"

Cd vnpy

Git checkout dev

6. Go to the mongodb official website to download the latest x86 32-bit mongodb msi installation package and install it

7. Register MongoDB to serve the system

Mkdir c:\ data\ db

Mkdir c:\ data\ log

"C:\ Program Files\ MongoDB\ Server\ 3.6\ bin\ mongod.exe"-- logpath c:\ data\ log\ mongodb.log-- logappend-- dbpath c:\ data\ db-- directoryperdb-- serviceName MongoDB-- install

Net start MongoDB

8. Install vn.py

Open https://github.com/vnpy/vnpy/blob/dev/install.bat to configure the environment according to the install.bat content

:: Install Python Modules

Pip install-r requirements.txt

:: Install Ta-Lib

Conda config-- add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

Conda config-set show_channel_urls yes

Conda install-c quantopian ta-lib=0.4.9-y

:: conda install-c conda-forge python-snappy-y

:: Install vn.py

Python setup.py install

6. Modify the simnow ctp simulated trading account and password of examples\ VnTrader\ CTP_connect.json, and then open vntrade.bat to start the vnpy graphical interface

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report