6
Follow
956
Followers
关于回测系统 Python 版本默认更改为 Python3 的重要通知 !
Created 2019-10-13 15:59:04 Updated 2019-10-15 12:13:26
0
3014
关于量化系统 Python 版本默认更改为 Python3 的重要通知 !
- Python 核心团队计划在 2020 年停止支持 Python2
- NumPy, Pandas, Matplotlib 等著名的三方库声明同样2020年放弃Python2的支持
发明者平台决定更新回测系统默认引擎为Python3, 并增加了tensorflow, torch库的支持
如果您的Python2代码不想切换, 可以在代码开头第一行加入
#!python2
或者使用python3的2to3工具进行转换
注:
- Python代码的第一行可以指定引擎绝对路径
- 托管者在运行Python代码时会动态检测本机Python的安装环境, 如果指定的为python3但没安装,就用默认版本运行
- Python3的API返回类型中的字符串除Dial操作返回的bytes类型外, 其它一律统一为str类型
Related Recommendations
Advanced Tutorial for FMZ Quant platform Strategy WritingElementary Tutorial for FMZ Quant platform Strategy WritingGet Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engineHow to install ta-lib on linux docker?5.5 Trading strategy optimization
Comment
All comments (0)
No data
- 1
