Finance-Python icon indicating copy to clipboard operation
Finance-Python copied to clipboard

安装好了怎么老是用不了呀

Open wstates opened this issue 5 years ago • 1 comments

`# -- coding: utf-8 --

from PyFin.Math.Accumulators.StatefulAccumulators import MovingCorrelationMatrix from PyFin.Analysis.TechnicalAnalysis.StatefulTechnicalAnalysers import SecuritySingleValueHolder `导入这个找不到

出现这个错误 from PyFin.Math.Accumulators.StatefulAccumulators import MovingCorrelationMatrix ImportError: cannot import name 'MovingCorrelationMatrix' from 'PyFin.Math.Accumulators.StatefulAccumulators' (I:\Miniconda\envs\mycode\lib\site-packages\finance_python-0.7.3-py3.7-win-amd64.egg\PyFin\Math\Accumulators\StatefulAccumulators.cp37-win_amd64.pyd) 我用人家的库,需要有Finance-Python这个库,怎么安装好了老是出这种导入不了的错误啊.

而且这个我去找那个py文件里面就是这个? def __bootstrap__(): global __bootstrap__, __loader__, __file__ import sys, pkg_resources, imp __file__ = pkg_resources.resource_filename(__name__, 'StatefulAccumulators.cp37-win_amd64.pyd') __loader__ = None; del __bootstrap__, __loader__ imp.load_dynamic(__name__,__file__) __bootstrap__() 我是不是什么没安装呀,我感觉这个库怪怪的一点都看不懂^_^!

wstates avatar Aug 04 '19 08:08 wstates

不好意思,这么晚看见。 如果从源码安装,需要:

$ python setup.py build_ext
$ python setup.py install

wegamekinglc avatar Dec 12 '20 06:12 wegamekinglc