Installing scikit-learn via pip, without sudo and with a static ATLAS

less than 1 minute read

Installing scikit-learn via pip on a machine with no sudo privileges, and a static ATLAS lib can be a nightmare if you do not know what you are doing: the idea is to use the –global-option flag of pip install to pass extra commands to build_ext. See this SO answer. In this particular instance, you probably want to use something like –global-option=build_ext –global-option=-I/path/to/include –global-option=-L/path/to/lib –global-option=-latlas –global-option=-lcblas … scikit-learn (where … is for the other blas libs). Also see this thread, which helped me out with these options