Error with calling Numpy, Scipy, Gensim in python3

孤者浪人 提交于 2019-12-11 04:53:38

问题


Why when I call Numpy, Scipy, Gensim with python3 in linux I have the following error?

>import gensim
_concrete_types = {v.type for k, v in _concrete_typeinfo.items()}
AttributeError: 'tuple' object has no attribute 'type'

回答1:


I've today observed this issue as well, but with tooling that depends only on pandas as numpy.

I've also seen a similar issue here: AttributeError: 'tuple' object has no attribute 'type' upon importing tensorflow

I can't add this as a comment because I don't have sufficient reputation, so please forgive me.

*edit see the other thread for an answer: it's the new numpy version.



来源:https://stackoverflow.com/questions/54196106/error-with-calling-numpy-scipy-gensim-in-python3

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