刚刚克隆了一份vn-py的源码,按官网windows 手动安装方案的步骤走完,执行examples/veighna_trader/run.py报错
File "C:\veighna_studio\lib\site-packages\vnpy_optionmaster__init__.py", line 26, in <module>
from .engine import OptionEngine, APP_NAME
File "C:\veighna_studio\lib\site-packages\vnpy_optionmaster\engine.py", line 32, in <module>
from .pricing import binomial_tree_cython as binomial_tree
File "binomial_tree_cython.pyx", line 1, in init binomial_tree_cython
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
查看了requirements.txt,要求numpy==1.21.5
查看系统安装版本:
import numpy
numpy.version
Out[3]: '1.21.5'
问题出在哪里呢? 谢谢!