ImportError: No module named py31compat

后端 未结 4 1802
深忆病人
深忆病人 2021-01-24 04:03

i am trying to install gensim using

sudo -H pip install --upgrade gensim

but it is giving me this error :

  File \"setup.py\",         


        
4条回答
  •  隐瞒了意图╮
    2021-01-24 04:28

    Notice that setuptools come from /usr/local/lib whereas pkg_resources come from /usr/lib. You must likely have an older pkg_resources through the package system and then a newer setuptools installed by pip.

    Delete (or move away) the /usr/local/lib/python2.7/dist-packages/setuptools directory.

提交回复
热议问题