问题解决:AttributeError: module 'paddle' has no attribute 'reader'

目录

解决的问题

解决的方法


解决的问题

AttributeError: module 'paddle' has no attribute 'reader'

runfile('F:/python_project/test1011.py', wdir='F:/python_project')
Traceback (most recent call last):

  File "<ipython-input-32-b0ebce07bf1f>", line 1, in <module>
    runfile('F:/python_project/test1011.py', wdir='F:/python_project')

  File "d:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
    execfile(filename, namespace)

  File "d:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
    exec(compile(f.read(), filename, 'exec'), namespace)

  File "F:/python_project/test1011.py", line 7, in <module>
    import paddle.fluid as fluid

  File "d:\ProgramData\Anaconda3\lib\site-packages\paddle\fluid\__init__.py", line 52, in <module>
    from . import io

  File "d:\ProgramData\Anaconda3\lib\site-packages\paddle\fluid\io.py", line 57, in <module>
    ] + reader.__all__ + paddle.reader.__all__

AttributeError: module 'paddle' has no attribute 'reader'

解决的方法

更新中......

发布了18 篇原创文章 · 获赞 8 · 访问量 1780

猜你喜欢

转载自blog.csdn.net/u010244992/article/details/104408490