我已经安装了2个python库:
成功安装gensim所必需的,如:https://radimrehurek.com/gensim/install.html中所述。我使用了来自http://www.lfd.uci.edu/~gohlke/pythonlibs/的轮子文件来安装windows 7 64位机器上的python3.4。我遇到了某些兼容性问题。
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' ---------------------------------------- 错误: C:\Users\888537\AppData\Local\Temp\pip-build-7zxq63k_\smart-open\中的错误代码1导致命令"python setup.py egg_info“失败
在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安装之外,还有别的办法吗?我试图从git进口也没有成功。: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发布于 2016-04-29 14:54:15
你能试试这个吗?
pip install --upgrade setuptools然后
pip install gensim发布于 2016-05-02 13:32:27
我找到了我的question.The package的答案,因为它试图打印到一个非UTF-8语言环境,而依赖SciPy却找不到OpenBLAS/Lapack。参考资料:
我试着按照post:Python SciPy需要BLAS吗?的步骤来修复这个问题
但是,我决定转向Anaconda,用gensim库编写代码。
https://stackoverflow.com/questions/36940334
复制相似问题