import error: no module named bson

久未见 提交于 2019-12-05 01:25:46

If you don't get the no module named bson error but the EPOCH_AWARE import error , this is due to a name clash between bson and pymongo . In this case you should do these in order :

sudo pip uninstall bson
sudo pip uninstall pymongo
sudo pip install pymongo

you don't need to install bson again

Please try on your terminal:

sudo apt-get purge python-bson
sudo apt-get install python-bson

Regards

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