lzxevol 2021-01-05 14:20 采纳率: 50%
浏览 70
已采纳

tensorflow运行问题

有大佬遇到过这个问题吗,望指点

AttributeError                            Traceback (most recent call last)
<ipython-input-13-41389fad42b5> in <module>()
----> 1 import tensorflow as tf

F:\Program Files (x86)\anaconda3\lib\site-packages\tensorflow\__init__.py in <module>()
     26 
     27 # pylint: disable=g-bad-import-order
---> 28 from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
     29 from tensorflow.python.tools import module_util as _module_util
     30 

F:\Program Files (x86)\anaconda3\lib\site-packages\tensorflow\python\__init__.py in <module>()
     45 # pylint: disable=wildcard-import,g-bad-import-order,g-import-not-at-top
     46 
---> 47 import numpy as np
     48 
     49 from tensorflow.python import pywrap_tensorflow

F:\Program Files (x86)\anaconda3\lib\site-packages\numpy\__init__.py in <module>()
    140     from . import _distributor_init
    141 
--> 142     from . import core
    143     from .core import *
    144     from . import compat

F:\Program Files (x86)\anaconda3\lib\site-packages\numpy\core\__init__.py in <module>()
     55 from . import umath
     56 from . import _internal  # for freeze programs
---> 57 from . import numerictypes as nt
     58 multiarray.set_typeDict(nt.sctypeDict)
     59 from . import numeric

F:\Program Files (x86)\anaconda3\lib\site-packages\numpy\core\numerictypes.py in <module>()
    109 )
    110 
--> 111 from ._type_aliases import (
    112     sctypeDict,
    113     sctypeNA,

F:\Program Files (x86)\anaconda3\lib\site-packages\numpy\core\_type_aliases.py in <module>()
     61         _concrete_typeinfo[k] = v
     62 
---> 63 _concrete_types = {v.type for k, v in _concrete_typeinfo.items()}
     64 
     65 

F:\Program Files (x86)\anaconda3\lib\site-packages\numpy\core\_type_aliases.py in <setcomp>(.0)
     61         _concrete_typeinfo[k] = v
     62 
---> 63 _concrete_types = {v.type for k, v in _concrete_typeinfo.items()}
     64 
     65 

AttributeError: 'tuple' object has no attribute 'type'
  • 写回答

3条回答 默认 最新

  • 无厘头编程 2021-01-05 14:28
    关注
    numpy 造成的,重装 numpy, 试试。
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 三极管电路求解,已知电阻电压和三级关放大倍数
  • ¥15 ADS时域 连续相位观察方法
  • ¥15 Opencv配置出错
  • ¥15 模电中二极管,三极管和电容的应用
  • ¥15 关于模型导入UNITY的.FBX: Check external application preferences.警告。
  • ¥15 气象网格数据与卫星轨道数据如何匹配
  • ¥100 java ee ssm项目 悬赏,感兴趣直接联系我
  • ¥15 微软账户问题不小心注销了好像
  • ¥15 x264库中预测模式字IPM、运动向量差MVD、量化后的DCT系数的位置
  • ¥15 curl 命令调用正常,程序调用报 java.net.ConnectException: connection refused