- Gensim报错
- 解决办法
首次安装Gensim扩展包后,导入扩展包直接报错,如下
import gensim
RuntimeError: Compiled extensions are unavailable. If you've installed from a package, ask the package maintainer to include compiled extensions. If you're building Gensim from source yourself, install Cython and a C compiler, and then run `python setup.py build_ext --inplace` to retry.解决办法
在网上试了很多办法,都失败了,最后准备放弃的时候,看到stackover 上有说gensim需要和numpy、scipy扩展包保持版本一致,因此统一更新了这些扩展包后即可。



