【发布时间】:2019-05-24 03:51:45
【问题描述】:
我使用 StackOverflow 上的 this 链接安装了 tensorflow。
但是,当我尝试运行我的代码时,出现以下错误
这是我的系统信息
(env) PS C:\SD\project> python --version
Python 3.7.3
(env) PS C:\SD\AnomalyDetectionCVPR2018> pip3 --version
pip 19.1.1 from c:\sd\env\lib\site-packages\pip (python 3.7)
我得到的错误:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\SD\env\lib\site-packages\tensorflow\python\__init__.py", line 66, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:\SD\env\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 28, in <module>
_pywrap_tensorflow = swig_import_helper()
File "C:\SD\env\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 20, in swig_import_helper
import _pywrap_tensorflow
ModuleNotFoundError: No module named '_pywrap_tensorflow'
Failed to load the native TensorFlow runtime.
See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#import_error
我做错了什么?到目前为止,我使用 Python 和 pip 没有任何问题。
【问题讨论】:
标签: python windows tensorflow installation tensorboard