Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/318.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 在Ubuntu上安装gensim的问题_Python_Python 2.7_Gensim - Fatal编程技术网

Python 在Ubuntu上安装gensim的问题

Python 在Ubuntu上安装gensim的问题,python,python-2.7,gensim,Python,Python 2.7,Gensim,我正试图在我的Ubuntu上用Python安装gensim。我尝试了easy_安装,但出现了错误。有人能帮我找出哪里出了问题吗 易于安装 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/set

我正试图在我的Ubuntu上用Python安装gensim。我尝试了easy_安装,但出现了错误。有人能帮我找出哪里出了问题吗

易于安装

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

谢谢

必须升级Scipy…遵循josteinb在以下线程中给出的答案中给出的解决方案:

能够按如下方式升级scipy:

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

gensim的简易安装在升级Scipy后运行顺利…遵循josteinb在以下线程中给出的解决方案:

能够按如下方式升级scipy:

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

gensim的easy_安装在此之后运行顺利

通常最好使用虚拟环境和“pip”安装工具,这样可以避免在系统Python中混合软件包,并自动处理依赖关系。或者类似地,也可以使用
conda
工具,该工具还可以创建环境,然后
conda安装[PACKAGE]
pip安装[PACKAGE]
。(我更喜欢
miniconda
变体。)通常最好使用虚拟环境和“pip”安装工具,这样可以避免在系统Python中混合软件包,并自动处理依赖项。或者类似地,也可以使用
conda
工具,该工具还可以创建环境,然后
conda安装[PACKAGE]
pip安装[PACKAGE]
。(我更喜欢
miniconda
变体。)