2015-09-25 81 views
0

我无法在我的Ubuntu 12.04盒子上制作sklearn功能。这是我得到的错误。我不知道如何解决它?libatlas.so.3gf:无法打开共享目标文件

from sklearn.manifold import TSNE 

# gives the below error 
ImportError: libatlas.so.3gf: cannot open shared object file: No such file or directory 

这里是LS/usr/lib中/图谱基/ enter image description here

+0

你能否提供一个更具体的例子来说明导致这个错误的原因?它只是在Python脚本中导入sklearn? – NBartley

+0

更新...对不起,我应该做到这一点。 – mousecoder

+0

这可能是scipy/numpy和您系统的BLAS库的问题。你可以运行以下吗? '进口scipy; scipy .__ config __。show()' – NBartley

回答

0

阿特拉斯似乎不为推荐库的输出。 OpenBlas是推荐的库。如果Numpy配置正确,一切都将很容易。

链接现有numpy的图书馆:Link ATLAS/MKL to an installed Numpy 编译numpy的与OpenBlas:Compiling numpy with OpenBLAS integration

所以,在任何这样的问题卸载现有numpy的,并尝试上面两个环节。一切都会正常工作。使用第二个链接进行安装是最佳选择。做一次,然后永远不要担心。

相关问题