python - 导入张量流在Windows中给出错误
问题描述
我使用的是 64 位 Windows 操作系统,并且成功安装了 tensorflow,但是在将其导入 python 3.6 时,出现以下错误。请告诉如何解决这个问题。
导入张量流
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import tensorflow
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\__init__.py", line 59, in <module>
from tensorflow.core.framework.graph_pb2 import *
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\core\framework\graph_pb2.py", line 6, in <module>
from google.protobuf import descriptor as _descriptor
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\google\protobuf\descriptor.py", line 47, in <module>
from google.protobuf.pyext import _message
ImportError: DLL load failed: The specified procedure could not be found.
解决方案
推荐阅读
- python - 检查密钥不存在
- javascript - 如何在 ReactJS 中设置向“onchange”添加两个函数
- vue-router - Vue 应用程序无法独立加载组件(无错误消息)
- node.js - Node.js 如何将 req.body 转换为字符串
- php - 检查输入是否有数字或只有字母,然后在提交时回显结果
- amazon-web-services - 如何使用 dynamodb 包装器连接到现有数据库?
- java - Selenium TestNG 依赖澄清设计
- javascript - href 确认 onclick 意外返回
- javascript - html d3.js,图像在 Firefox 中呈现,但不在 chrome 中
- python - 从“dict_keyiterator”中删除项目