2017-09-16 113 views
1

我想使用Zipline,但是Zipline不包含我需要的財務數據。 現在使我通過下面的鏈接去我我自己的數據包: http://www.zipline.io/bundles.html將數據導入zipline

從我的理解我我的Ubuntu終端上通過了以下命令:

"zipline ingest -b /home/furqan/Desktop/python_data" 

我的數據保存在文件夾「 python_data'位於桌面上。 傳遞上面的命令我到以下錯誤:

Error: No bundle registered with the name'/home/furqan/Desktop/python_data'` 

我應該如何解決這個問題?

回答

0

正如iPython magic for Zipline cannot find data bundle所述,這是zipline中的一個已知錯誤。它說,在你做任何事情之前,如下所示加載zipline。進口操作系統

from zipline.utils.run_algo import load_extensions 

load_extensions(
    default=True, 
    extensions=[], 
    strict=True, 
    environ=os.environ, 
) 
+0

我需要在傳遞接收命令之前在終端中傳遞上述命令嗎? –

+0

你使用python嗎? – James

+0

是的,我正在使用python。 –