2017-07-27 193 views
0

我想在我的Ubuntu上安裝gensim。我試着用easy_install,但得到錯誤。有人可以幫助確定發生了什麼問題嗎?在Ubuntu上安裝gensim的問題

的easy_install

easy_install -U gensim 

Running scipy-0.19.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install- QXO1dA/scipy-0.19.1/egg-dist-tmp-AxijnA 
/tmp/easy_install-QXO1dA/scipy-0.19.1/setup.py:323: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates 

warnings.warn("Unrecognized setuptools command, proceeding with "                 /usr/local/lib/python2.7/dist-packages/numpy/distutils/system_info.py:572: UserWarning: Atlas (http://math-atlas.sourceforge.net/) libraries not found.                  
Directories to search for the libraries can be specified in the                  numpy/distutils/site.cfg file (section [atlas]) or by setting                  the ATLAS environment variable.  

self.calc_info()                              
/usr/local/lib/python2.7/dist-packages/numpy/distutils/system_info.py:572: UserWarning:             
Lapack (http://www.netlib.org/lapack/) libraries not found.                   
Directories to search for the libraries can be specified in the                  
numpy/distutils/site.cfg file (section [lapack]) or by setting                  
the LAPACK environment variable.                         
self.calc_info()                             
/usr/local/lib/python2.7/dist-packages/numpy/distutils 
/system_info.py:572: UserWarning:             
Lapack (http://www.netlib.org/lapack/) sources not found.                   
Directories to search for the sources can be specified in the                  
numpy/distutils/site.cfg file (section [lapack_src]) or by setting                 
the LAPACK_SRC environment variable.                        
self.calc_info()                             
Running from scipy source directory.                         
non-existing path in 'scipy/integrate': 'quadpack.h'                     
Warning: Can't read registry to find the necessary compiler setting                 
Make sure that Python modules _winreg, win32api or win32con are installed.               
error: no lapack/blas resources found 

謝謝

+1

後工作順利,通常最好使用虛擬環境和「點子」的安裝工具,從而避免了在你的系統的Python混合包,並自動處理依賴性。或者,類似地,'conda'工具也可以創建環境,然後'conda安裝[PACKAGE]'或'pip install [PACKAGE]'到這些環境中。 (我更喜歡'miniconda'變體。) – gojomo

回答

0

不得不升級SciPy的......遵循以下線程通過josteinb的答案給出瞭解決方案:

Can't upgrade Scipy

能夠升級scipy如下:

sudo apt-get build-dep python-scipy 
sudo pip install --upgrade scipy 

gensim的easy_install的這個