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