Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wstates opened this issue Aug 4, 2019 · 1 comment
Open

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

wstates opened this issue Aug 4, 2019 · 1 comment

Comments

@wstates
Copy link

wstates commented Aug 4, 2019

`# -- 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__() 我是不是什么没安装呀,我感觉这个库怪怪的一点都看不懂^_^!

@wegamekinglc
Copy link
Member

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants