Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/353.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
Gensim库Python 3.4的安装问题:http://www.lfd.uci.edu/~gohlke/pythonlibs/_Python_Git_Numpy_Scipy_Gensim - Fatal编程技术网

Gensim库Python 3.4的安装问题:http://www.lfd.uci.edu/~gohlke/pythonlibs/

Gensim库Python 3.4的安装问题:http://www.lfd.uci.edu/~gohlke/pythonlibs/,python,git,numpy,scipy,gensim,Python,Git,Numpy,Scipy,Gensim,我已经安装了2个python库: NumPy-1.10.4 Scipy-0.17.0 如中所述,成功安装gensim所需的。我使用了中的wheel文件,将其安装在带有python 3.4的windows 7 64位计算机上。我遇到了某些兼容性问题 C:\Users\888537>py -m pip install gensim-0.12.4-cp34-none-win_amd64.whl Processing c:\users\888537\gensim-0.

我已经安装了2个python库:

  • NumPy-1.10.4

  • Scipy-0.17.0

  • 如中所述,成功安装gensim所需的。我使用了中的wheel文件,将其安装在带有python 3.4的windows 7 64位计算机上。我遇到了某些兼容性问题

       C:\Users\888537>py -m pip install gensim-0.12.4-cp34-none-win_amd64.whl         
       Processing c:\users\888537\gensim-0.12.4-cp34-none-win_amd64.whl  
       Collecting numpy>=1.3 (from gensim==0.12.4)                                         
       Using cached numpy-1.11.0-cp34-none-win_amd64.whl                                
       Collecting smart-open>=1.2.1 (from gensim==0.12.4)                                
       Using cached smart_open-1.3.2.tar.gz                                              
       Complete output from command python setup.py egg_info:                          
       D:\Program Files\Python\lib\distutils\dist.py:260: UserWarning: Unknown distribution option: 'install_requires'                                                   warnings.warn(msg)                                                            
       D:\Program Files\Python\lib\distutils\dist.py:260: UserWarning: Unknown distribution option: 'test_suite'                                                         
       warnings.warn(msg)                                                            
       usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]                    
       or: -c --help [cmd1 cmd2 ...]                                                    
       or: -c --help-commands                                                          
       or: -c cmd --help                                                                                                                                            
       error: invalid command 'egg_info'                                                                                                                               ---------------------------------------- 
    
    错误:命令“python setup.py egg_info”失败,错误代码为1,位于C:\Users\888537\AppData\Local\Temp\pip-build-7zxq63k\uu\smart open\

    在pip安装过程中也会发生同样的情况:

    Command "python setup.py egg_info" failed with error code 1 in C:\Users\888537\A
    ppData\Local\Temp\pip-build-4o3kecba\gensim\
    
    除了通过git repo进行安装之外,还有其他解决方法吗?我尝试从git repo导入时也失败了:P

    C:\Users\888537>py -m pip install -e git+ssh://git@github.com/piskvorky/gensim.g
    it
    --editable=git+ssh://git@github.com/piskvorky/gensim.git is not the right format
    ; it must have #egg=Package
    

    你能试试这个吗

    pip install --upgrade setuptools
    
    然后

    pip install gensim
    

    你能试试这个吗

    pip install --upgrade setuptools
    
    然后

    pip install gensim
    

    我找到了问题的答案。pip包gensim未能安装,因为依赖项httpretty试图打印到非UTF-8语言环境,而依赖项SciPy未能找到OpenBLAS/Lapack库。

    我根据帖子尝试了以下步骤来解决此问题:


    但是,我决定转向Anaconda使用gensim库编程代码。

    我找到了问题的答案。pip包gensim未能安装,因为依赖项httpretty试图打印到非UTF-8语言环境,而依赖项SciPy未能找到OpenBLAS/Lapack库。

    我根据帖子尝试了以下步骤来解决此问题:


    然而,我决定转向Anaconda使用gensim库编程代码。

    为什么不能直接
    pip安装gensim
    ?我现在已经试过了,我得到了gensim==0.12.4在pip安装过程中我得到的错误是:命令“python setup.py egg_info”失败,错误代码为C:\Users\888537\A ppData\Local\Temp\pip-build-4o3keba\gensim\为什么不能直接
    pip安装gensim
    ?我现在已经试过了,得到了gensim==0.12.4在pip安装过程中得到的错误是:命令“python setup.py egg_\u info”失败,错误代码为1,位于C:\Users\888537\A ppData\Local\Temp\pip-build-4o3keba\gensim\Hello Paul,“python setup.py egg_\u-info”C:\Users\888537\A ppData\Local\Temp\pip-build-4o3keba\gensim\“是使用pip终止gensim包安装的错误代码。因此,pip安装不成功。Hello Paul,“python setup.py egg\u info”“C:\Users\888537\A ppData\Local\Temp\pip-build-4o3keba\gensim\中的错误代码1失败”是使用pip终止gensim软件包安装的错误代码。因此,pip安装不成功。在Anacondas中,gensim库通过一条语句“conda install gensim”成功安装安装了HttpRety打印机和所有相关文件以一次性成功安装gensim。在Anacondas中,gensim库通过一条语句“conda install gensim”成功安装,该语句安装了HttpRety打印机和所有相关文件以一次性成功安装gensim。