Tensorflow:AttributeError:模块'numpy.core'没有属性'numerictypes'

时间:2018-03-25 16:46:19

标签: python numpy tensorflow scipy

尝试使用tensorflow时出现以下错误:

Traceback (most recent call last):   File "<stdin>", line 1, in <module>   File "C:\Users\J\Anaconda3\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
    from tensorflow.python import *   File "C:\Users\J\Anaconda3\lib\site-packages\tensorflow\python\__init__.py", line 47, in <module>
    import numpy as np   File "C:\Users\J\Anaconda3\lib\site-packages\numpy\__init__.py", line 142, in <module>
    from . import add_newdocs   File "C:\Users\J\Anaconda3\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc   File "C:\Users\J\Anaconda3\lib\site-packages\numpy\lib\__init__.py", line 18, in <module>
    from . import scimath as emath   File "C:\Users\J\Anaconda3\lib\site-packages\numpy\lib\scimath.py", line 21, in <module>
    import numpy.core.numerictypes as nt AttributeError: module 'numpy.core' has no attribute 'numerictypes'

我在Windows 10上。

0 个答案:

没有答案