软件_win10安装rqalpha

win10安装rqalpha
参考文档
rqalpha地址:https://rqalpha.readthedocs.io/zh_CN/latest/intro/detail_install.html#intro-detail-install
1,安装ubuntu和win10共存的双系统,失败,放弃
2,使用win10已安装的Anaconda2-5.3.0-Windows-x86_64.exe,参考官方文档继续安装
pip install -U pip
pip install -U setuptools

pip install bcolz==1.2.0 -i https://pypi.douban.com/simple

报错,想到ada安装在c盘,容易由权限引发问题,卸载安装到D盘
3,换装Anaconda3-4.2.0-Windows-x86_64.exe到D盘
问题1,闪退
解决:https://blog.csdn.net/ws_developer/article/details/80953401
第2步,CONNECTION FAILED
解决:https://www.aliyun.com/jiaocheng/459144.html

4,继续第二步的

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pip install -U pip  
报错:Cannot open D:\Program Files\Anaconda3\Scripts\pip-script.py
解决:easy_install pip
pip install -U setuptools
pip install bcolz==1.2.0 -i https://pypi.douban.com/simple
报错: error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
解决:下载vs,安装2017版本
pip install -i https://pypi.douban.com/simple rqalpha
问题:Cannot uninstall 'XlsxWriter'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
解决:pip install --ignore-installed bcolz==1.2.0 -i https://pypi.douban.com/simple
看起来好了,没报错,但是rqalpha version,依然报错无法找到命令
解决:conda install bcolz -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
看起来好,rqalpha version,还是无法找到命令
突然看到另一偏帖子:https://www.cnblogs.com/luhouxiang/p/8443857.html(好帖子)
"安装bcolz,安装这个组件不能用pip执行,会失败,只能用easy_install。easy_install -U bcolz"
尝试了下
然后pip install -i https://pypi.douban.com/simple rqalpha --ignore-installed
看起来好了,rqalpha version也正常了

5,pip install TA-Lib
参考:https://www.cnblogs.com/ttrrpp/p/6877218.html
下载whl最简单方式

6,rqalpha update-bundle
数据下载成功: C:\Users\john.rqalpha\bundle

7,运行范例
rqalpha run -f “d:\Program Files\Anaconda3\Lib\site-packages\rqalpha\examples/buy_and_hold.py” -s 2017-01-01 -e 2017-06-30 –account stock 100000 –plot

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×