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

I meet a bug about installing #357

Open
learningelectric opened this issue Nov 27, 2021 · 5 comments
Open

I meet a bug about installing #357

learningelectric opened this issue Nov 27, 2021 · 5 comments
Labels

Comments

@learningelectric
Copy link

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!

@zhouqb
Copy link

zhouqb commented Jan 6, 2022

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

@ding00
Copy link

ding00 commented Apr 3, 2023

me too, please help!

@learningelectric
Copy link
Author

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

@pepetikesavasiddhardha
Copy link

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

@pepetikesavasiddhardha
Copy link

pepetikesavasiddhardha commented Jun 22, 2023

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

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

No branches or pull requests

4 participants