本文介绍了导入numpy时出现OpenBLAS错误:blas_thread_init函数中的"pthread_creat错误"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
突然,我无法导入numpy:
All of a sudden, I cannot import numpy:
import numpy as np
OpenBLAS: pthread_creat error in blas_thread_init function. Error code:1
我从Anaconda 1.10.1-py27_0
运行numpy,但在1.9.3-py27_0
I'm running numpy from Anaconda 1.10.1-py27_0
but I had the same issue on 1.9.3-py27_0
有任何线索吗?
尝试找出我使用的版本是什么:
Trying to find out what the version used is I did:
>ldd multiarray.so
linux-vdso.so.1 => (0x00007fff53fd4000)
libopenblas.so.0 => not found
libm.so.6 => /lib64/libm.so.6 (0x00007faa1ec14000)
libpython2.7.so.1.0 => not found
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007faa1e9f7000)
libc.so.6 => /lib64/libc.so.6 (0x00007faa1e663000)
/lib64/ld-linux-x86-64.so.2 (0x000000377fc00000)
所以图书馆似乎不存在.
so it seems that the library is not there.
推荐答案
我对anaconda也有类似的问题.我通过更新numpy,scipy和openblas来解决了该问题
I had a similar problem with anaconda. I solved it by updating numpy, scipy and openblas
这篇关于导入numpy时出现OpenBLAS错误:blas_thread_init函数中的"pthread_creat错误"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!