SPORF icon indicating copy to clipboard operation
SPORF copied to clipboard

I meet a bug about installing

Open learningelectric opened this issue 3 years ago • 5 comments

Describe the bug I meet a bug about installing

pip install rerf

To Reproduce

In file included from src/src/baseFunctions/../forestTypes/unsupervisedForests/urf/fpURFBase.h:13, from src/src/baseFunctions/fpForestFactory.h:8, from src/src/packedForest.h:23, from src/packedForest.cpp:1: src/src/baseFunctions/../forestTypes/unsupervisedForests/urf/urfTree.h:9:10: 致命错误:eigen3/Eigen/Dense:没有那个文件或目录 #include <eigen3/Eigen/Dense> ^~~~~~~~~~~~~~~~~~~~ 编译中断。 error: command 'gcc' failed with exit status 1

Expected behavior pip install rerf

Desktop (please complete the following information):

  • OS: centOS 7
  • Language: Python
  • Version 2.0.4

Please help!

learningelectric avatar Nov 27 '21 14:11 learningelectric

I am having the same issue when running pip install rerf

    In file included from src/src/baseFunctions/../forestTypes/unsupervisedForests/urf/fpURFBase.h:13:0,
                     from src/src/baseFunctions/fpForestFactory.h:8,
                     from src/src/packedForest.h:23,
                     from src/packedForest.cpp:1:
    src/src/baseFunctions/../forestTypes/unsupervisedForests/urf/urfTree.h:9:30: fatal error: eigen3/Eigen/Dense: No such file or directory
     #include <eigen3/Eigen/Dense>
                                  ^
    compilation terminated.
    error: command 'gcc' failed with exit status 1

zhouqb avatar Jan 06 '22 17:01 zhouqb

me too, please help!

ding00 avatar Apr 03 '23 12:04 ding00

Haha. I have given up on rerf, I choose deep forest !!!

learningelectric avatar Apr 03 '23 12:04 learningelectric

even i have the same issue while installing ,can u pls help how can i resolve this? image

pepetikesavasiddhardha avatar Jun 22 '23 05:06 pepetikesavasiddhardha

even i have the same issue while installing ,can u pls help how can i resolve this? image

Identified my mistake, Thanks @burhr2 for the idea initially we have to install a virtual environment in the google colab notebook then we have to use following commands for installing rerf library !sudo apt-get install ! sudo apt-get install build-essential cmake python3-dev libomp-dev libeigen3-dev ! pip install rerf Then these 3 commands will finish the task of installing rerf library which we use for oblique random forest implementation. Then we can import it and use rerf classifier/regressor as per our need. import rerf from rerf.rerfClassifier import rerfClassifier

Important thing to note here is it is better to create a virtual environment in colab notebook before installing library as I faced some problems because of it and process will be smooth if u install virtual env and work in it. Also these lines of code will work in both windows/Linux, also I think it would work on macOS but not exactly sure

pepetikesavasiddhardha avatar Jun 22 '23 09:06 pepetikesavasiddhardha