简体   繁体   English

无法在Windows上导入tensorflow,python 3.5

[英]Can't import tensorflow on windows, python 3.5

when I try to run import tensorflow on pycharm I get the following error message: 当我尝试在import tensorflow上运行import tensorflow ,我收到以下错误消息:

Traceback (most recent call last):
      File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.1.1\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
        module = self._system_import(name, *args, **kwargs)
    ImportError: No module named 'numpy.core._multiarray_umath'
    ImportError: numpy.core.multiarray failed to import
    During handling of the above exception, another exception occurred:
    Traceback (most recent call last):
      File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.1.1\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
        module = self._system_import(name, *args, **kwargs)
      File "<frozen importlib._bootstrap>", line 968, in _find_and_load
    SystemError: PyEval_EvalFrameEx returned a result with an error set
    2019-06-13 17:03:10.027225: F tensorflow/python/lib/core/bfloat16.cc:675] Check failed: PyBfloat16_Type.tp_base != nullptr 

I have tried to uninstall and install tensorflow using pip command, it didn't help. 我试图使用pip命令卸载并安装tensorflow,但没有帮助。

conda install -c conda-forge tensorflow conda install -c conda-forge tensorflow

OR 要么

conda create -n tensorflow pip python=3.5 conda create -n tensorflow pip python = 3.5

// cmd for activation // cmd用于激活

c:> activate tensorflow c:>激活tensorflow

(tensorflow)C:> pip install --ignore-installed --upgrade tensorflow (tensorflow)C:> pip install --ignore-installed --upgrade tensorflow

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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