OpenBLAS blas_thread_init: pthread_create: Resource temporarily unavailable

I had this problem running numpy on an ubuntu server. I got all of the following errors, depending on whether I tried to import numpy in a shell or running my django app: PyCapsule_Import could not import module “datetime” from numpy.core._multiarray_umath import ( OpenBLAS blas_thread_init: pthread_create failed for thread 25 of 32: Resource temporarily unavailable … Read more

Compiling numpy with OpenBLAS integration

I just compiled numpy inside a virtualenv with OpenBLAS integration, and it seems to be working OK. This was my process: Compile OpenBLAS: $ git clone https://github.com/xianyi/OpenBLAS $ cd OpenBLAS && make FC=gfortran $ sudo make PREFIX=/opt/OpenBLAS install If you don’t have admin rights you could set PREFIX= to a directory where you have write … Read more