问题
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