Using Gensim shows “Slow version of gensim.models.doc2vec being used”

穿精又带淫゛_ 提交于 2019-12-05 13:22:53

Highlighting @juanpa.arrivillaga's comment, as it helped me resolve this issue.
If you installed anaconda :

  • uninstall gensim : pip uninstall gensim
  • install it with the anaconda package manager : conda install gensim

The problem is to do with the some underlying packages not being up to date. Gordon's post here helped me.

But in short:

  1. Uninstall Gensim

    sudo pip3 uninstall gensim

  2. Install python3-dev build-essential

    sudo apt-get install python3-dev build-essential

  3. Re-Install Gensim

    sudo pip3 install --upgrade gensim

Notes:

  • Instructions above are for systems where pip and apt-get are used to manage packages

  • pip3 is the python3 version of pip

I also had this problem (I'm running ubuntu). I found out that if i'm using directly the version from github, the problem is fixed.

So there are 2 solutions: (first uninstall gensim using pip uninstall gensim)

  1. download and unzip the gensim zip file from gensim's github page, then CD to the folder of the zip content and run the command python setup.py install
  2. run this command pip install git+https://github.com/RaRe-Technologies/gensim@master#egg=gensim

I used the second and now I don't get the warnings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!