简体   繁体   中英

Tensorflow failure with Python Anaconda 3.7.1

I installed Anaconda Anaconda3-2018-12 (Python 3.7.1) ( this version).

Then I opened the "Anaconda prompt", and did pip install keras and pip install tensorflow . The installation succeeded but then when doing:

import keras

or

import tensorflow

I get:

ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
ImportError: numpy.core.multiarray failed to import

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

Traceback (most recent call last):
File "", line 980, 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-02-15 18:33:05.953996: F tensorflow/python/lib/core/bfloat16.cc:675]
Check failed: PyBfloat16_Type.tp_base != nullptr

What could be the problem?

正如评论中提到的,这解决了它:

pip install numpy --upgrade

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM