auto-sklearn: Can't install auto-sklearn due to pyrfr dependency
Hi all, I’m trying to benchmark auto-sklearn against the same data sets as TPOT on my local cluster (running Linux), but I can’t get pyrfr to install when I pip install auto-sklearn.
Is there an earlier version of auto-sklearn that I can use to perform this benchmark?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 13
- Comments: 39 (5 by maintainers)
@sfalkner haha wow… can’t believe I didn’t catch that O____O
Here’s the recipe, I got it to work:
Output:
This worked for me:
macOS install
FYI, it seems you can replace
conda install swigwithbrew install swigfrom @jolespin 's instructions, if you happen not to use condaThis worked for me to install:
(However, while installation completes, models still can’t seem to train due to something like #600 which crashes the kernel in jupyterlab. Looks like #679 may fix)
As I expected, your include path contains different python libraries, specifically the option:
-I/opt/software/Python/2.7.2–GCC-4.4.5/include … -I/mnt/home/olsonran/anaconda3/lib/python3.5/site-packages/numpy/core/include -I/mnt/home/olsonran/anaconda3/include/python3.5m
tells the compiler to look first for python 2.7 header files before looking into your anaconda files. This is what causes the runtime problems you experience: The API changed from python 2 to 3 such that the old header files mess things up. You also get a lot of warnings as a result.
You will have to find a way to add your anaconda path before the system’s python include directory. How that is done on CentOS, I don’t know, but maybe you know (because the anaconda path is already in there somehow). If not, I am sure your local sysadmin or Google knows. Let me know, if that still does not solve you problem. Hope that helps…
!apt-get install swig -y !pip install Cython numpy !pip install auto-sklearn
This will work !!
It Works, thanx sudo apt-get remove swig sudo apt-get install swig3.0 sudo ln -s /usr/bin/swig3.0 /usr/bin/swig pip install --user pyrfr pip install --user auto-sklearn
This worked for me, many thanks…
@jolespin your solution works like a charm.
Thanks @jolespin …that solved my issue too…
Thanks @jolespin it solves my problem too.
Within Anaconda, auto-sklearn and its dependencies are fairly easy to install, if you know that you need swig and a somewhat recent GCC.
Huzzah, that was it! The sysadmins snuck a
module load Python/2.7in on me. Nice debugging and thank you for the help, @sfalkner.@mfeurer: Do you have ~30 minutes this week to discuss auto-sklearn to make sure I run this benchmark properly?