gensim ImportError: No module named ordered_dict

前端之家收集整理的这篇文章主要介绍了gensim ImportError: No module named ordered_dict前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

再导入模块gensim时提示错误

from gensim import corpora

ImportError: No module named ordered_dict

解决办法:

pip install urllib3==1.22

如果遇到错误

ERROR: Cannot uninstall 'urllib3'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

参考:

ERROR: Cannot uninstall 'urllib3'. It is a distutils installed project and thus we cannot accurately determine which files belong to it

解决办法:

sudo pip install --ignore-installed urllib3==1.22


猜你在找的Python相关文章