Windows下C extension not loaded for Word2Vec, training will be slow.解决方法

Posted rb26dett

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Windows下C extension not loaded for Word2Vec, training will be slow.解决方法相关的知识,希望对你有一定的参考价值。

在网上看了好多个博客,都没有很好解决,最后google..

大概问题就是gensim库在安装时没有和其他一些包关联起来(可能是由于用pip安装的gensim导致这个问题),所以在用Word2Vec时没法加速,训练很慢(好像要好几个小时)

解决方法:

conda install mingw libpython
pip uninsall scipy
conda install scipy
pip uninstall gensim
conda install gensim

记住卸载包后重装一定要用conda来重新安装(好像比pip好一些,可以自动关联需要的包或文件),先重装scipy再重装gensim。

再去用word2vec时两秒就训练出来了(这差距—。—)

 

以上是关于Windows下C extension not loaded for Word2Vec, training will be slow.解决方法的主要内容,如果未能解决你的问题,请参考以下文章

Could not create a sandbox extension for /

运行报警告UserWarning: Unknown extension is not supported and will be removed warn(msg)

Swift 给UITableView 写extension 时 报错 does not conform to protocol 'UITableViewDataSource'(示例代

Windows Shell Extension始终无法安装?

idea Plugin "Maven Integration Extension" was not loaded: required plugin "Maven Int

Windows Batch: Remove file extension