2015-09-25 83 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的,並嘗試上面兩個環節。一切都會正常工作。使用第二個鏈接進行安裝是最佳選擇。做一次,然後永遠不要擔心。

相關問題