local 运行jupyter notebook问题



  • 运行程序Keras_FNN_BitTiger,出现
    AttributeError Traceback (most recent call last)
    —> 16 import keras.callbacks as cb
    ----> 2 from . import backend
    —> 69 from .tensorflow_backend import *
    ----> 4 from tensorflow.python.ops import tensor_array_ops
    —> 28 from tensorflow.python.framework import constant_op
    –> 111 from tensorflow.python.framework import dtypes
    –> 311 resource = DType(types_pb2.DT_RESOURCE)

    AttributeError: ‘module’ object has no attribute ‘DT_RESOURCE’

    查了一下,package安装应该都正确,好像是ipyhton的一些问题?



  • 似乎是设置好Virtualenv之后问题解决了,同时需要active environment
    source ~/tensorflow/bin/activate


登录后回复
 

与 BitTiger Community 的连接断开,我们正在尝试重连,请耐心等待