I am getting the following import error, although I have numpy installed
当我尝试运行dataloader.py时出现以下导入错误。
我逐行尝试了代码,我发现在将tensorlayer导入t1时出现了这个错误。
1 | $C:\Users\chinm\Desktop\Malta\Project\image synthesis\text-to-image-master>py data_loader.py |
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
ImportError: numpy.core.multiarray failed to importThe above exception was the direct cause of the following exception:
Traceback (most recent call last): File"
", line 968, in _find_and_load SystemError:
returned a result with
an error set ImportError: numpy.core._multiarray_umath failed to
import ImportError: numpy.core.umath failed to import 2019-03-25
16:12:44.506244: F tensorflow/python/lib/core/bfloat16.cc:675] Check
failed: PyBfloat16_Type.tp_base != nullptr
1 2 3 4 5 6 7 8 | import os import re import time import nltk import re import string import tensorlayer as tl from utils import * |
<但是>
运行:
<铅>
1 | conda install -c conda-forge numpy |