kingfengji / gcForest

This is the official implementation for the paper 'Deep forest: Towards an alternative to deep neural networks'
http://lamda.nju.edu.cn/code_gcForest.ashx
1.31k stars 429 forks source link

ImportError: No module named gcforest.gcforest #36

Closed zhoumingyi closed 6 years ago

zhoumingyi commented 6 years ago

I don't know how to fix it. I run pip install -r requirements.txt successfully. But it alerts me another error:

Using TensorFlow backend. Traceback (most recent call last): File "/home/mingyi/gcForest-master/examples/demo_mnist.py", line 19, in <module> from gcforest.gcforest import GCForest ImportError: No module named gcforest.gcforest Thanks!

zhoumingyi commented 6 years ago

I have fixed it. Modify the sys.path, then this code run successfully

jay2012-lin commented 6 years ago

Hello, you must copy the lib/gcforest directory to to the python install directory, as shwos:

在 2018年3月16日,上午9:13,Mingyi Zhou notifications@github.com 写道:

I don't know how to fix it. I run pip install -r requirements.txt successfully. But it alerts me another error:

Using TensorFlow backend. Traceback (most recent call last): File "/home/mingyi/桌面/gcForest-master/examples/demo_mnist.py", line 19, in from gcforest.gcforest import GCForest ImportError: No module named gcforest.gcforest Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kingfengji/gcForest/issues/36, or mute the thread https://github.com/notifications/unsubscribe-auth/ARQ2FQZs9lisWgOp3E_JBgP_Bm6f3MK0ks5texHPgaJpZM4StHBG.