在python3中调用Numpy,Scipy,Gensim时出错 [英] Error with calling Numpy, Scipy, Gensim in python3

查看:352
本文介绍了在python3中调用Numpy,Scipy,Gensim时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么在Linux中用python3调用Numpy,Scipy,Gensim时出现以下错误?

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'

推荐答案

我今天也观察到了这个问题,但是使用的工具仅依赖于作为numpy的熊猫.

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

我在这里也看到过类似的问题: AttributeError:元组"对象在导入张量流时没有属性类型"

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请参见其他主题以获取答案:这是新的numpy版本.

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

这篇关于在python3中调用Numpy,Scipy,Gensim时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆