ImportError: No module named py31compat

后端 未结 4 1847
深忆病人
深忆病人 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:32

    In my case i have odoo v10 installed and for any weird reason update or installed a library that stuck my server and not longer to start with XOE.

    The error was:

    cannot import name py31compat

    After 1 hour trying many differents things i decide uninstall:

    sudo pip uninstall setuptools
    
    Uninstalling setuptools-40.8.0:   Would remove:
    /usr/local/bin/easy_install
    /usr/local/bin/easy_install-2.7
    /usr/local/lib/python2.7/dist-packages/easy_install.py
    /usr/local/lib/python2.7/dist-packages/pkg_resources/*
    /usr/local/lib/python2.7/dist-packages/setuptools-40.8.0.dist-info/**
    

    And my service odoo server starts and works fine again!

提交回复
热议问题