问答详情
源自:3-1 TensorFlow结合mnist进行线性模型训练(1)

'tensorflow.contrib'引用不了

Traceback (most recent call last):

  File "D:/py/mnist_data/mnist/regression.py", line 3, in <module>

    import input_data

  File "D:\py\mnist_data\mnist\input_data.py", line 13, in <module>

    from tensorflow.contrib.learn.python.learn.datasets.mnist import read_data_sets

ModuleNotFoundError: No module named 'tensorflow.contrib'


提问者:高帅康 2021-11-19 17:28

个回答

  • 慕用85399463
    2022-01-26 16:20:32

    版本问题

    pip install tensorflow@1.14.0