back Installing scipy and sklearn on OpenBSD using pip

publication: novembro 19 2019 07:59
last update: novembro 19 2019 07:59

Before we begin, both are available from OpenBSD ports tree! But if you need to compile them for any purpose, you can use the following.

scipy needs Fortran compiler and Lapack

doas pkg_add g95 lapack
ln -s /usr/local/bin/egfortran ~/bin/f95
pip install --user scipy

sklearn needs to be built from source without OpenMP. Download from GitHub.

pip install --user Cython
cd ~/.local/lib/python3.7/site-packages
tar zxf ~/Downloads/scikit-learn-0.20.4.tar.gz
cd scikit-learn-0.20.4
python build
python install --prefix=~/.local

get in touch