Tensorflow Import Error (numpy.core.multiarray failed to import) #25942

@geoJaSON

Description

Trying to import Tensorflow in iPython while in an conda environment. An issue with Numpy seems to be breaking the import. I have uninstalled and reinstalled numpy and tensorflow (CPU) using Pip commands within the environment. Thanks everyone

System information *

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
  • TensorFlow version: 1.13
  • Python version: 3.7.2
  • Installed using virtualenv? pip? conda?: pip install --upgrade tensorflow
  • In [1]: import tensorflow

    ImportError Traceback (most recent call last)
    ImportError: DLL load failed: The specified module could not be found.

    ImportError Traceback (most recent call last)
    ImportError: numpy.core.multiarray failed to import

    The above exception was the direct cause of the following exception:

    SystemError Traceback (most recent call last)
    ~\AppData\Local\conda\conda\envs\objectdetection\lib\importlib_bootstrap.py in find_and_load(name, import )

    SystemError: <class '_frozen_importlib._ModuleLockManager'> returned a result with an error set

    ImportError Traceback (most recent call last)
    ImportError: numpy.core._multiarray_umath failed to import

    ImportError Traceback (most recent call last)
    ImportError: numpy.core.umath failed to import
    2019-02-20 07:42:30.475025: F tensorflow/python/lib/core/bfloat16.cc:675] Check failed: PyBfloat16_Type.tp_base != nullptr