【发布时间】:2019-05-25 21:58:15
【问题描述】:
我正在尝试让一个 github 存储库在我的电脑上工作。此存储库基于 tensorflow-gpu。目前,当我尝试运行代码时,出现以下错误:
Traceback (most recent call last):
File "D:/audio/deep-voice-conversion-master/deep-voice-conversion-master/convert.py", line 9, in <module>
from models import Net2
File "D:\audio\deep-voice-conversion-master\deep-voice-conversion-master\models.py", line 4, in <module>
import tensorflow as tf
File "D:\audio\deep-voice-conversion-master\deep-voice-conversion-master\venv\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "D:\audio\deep-voice-conversion-master\deep-voice-conversion-master\venv\lib\site-packages\tensorflow\python\__init__.py", line 59, in <module>
from tensorflow.core.framework.graph_pb2 import *
File "D:\audio\deep-voice-conversion-master\deep-voice-conversion-master\venv\lib\site-packages\tensorflow\core\framework\graph_pb2.py", line 6, in <module>
from google.protobuf import descriptor as _descriptor
File "D:\audio\deep-voice-conversion-master\deep-voice-conversion-master\venv\lib\site-packages\google\protoWbuf\descriptor.py", line 47, in <module>
from google.protobuf.pyext import _message
ImportError: DLL load failed: the specified module could not be found.
我在 windows 10 上使用 python 3.6 上的 pycharm。
我尝试关注these steps,但它似乎已经过时并且我没有让它工作。我也不喜欢使用 anaconda,因为这是一个巨大的包,我只想让这个存储库工作。到目前为止,我做了以下工作:
- 我已经通过 pip 安装了所有必需的包(包括 tensorflow 和 tensorflow-gpu 包)。
- 我还下载了 CUDA 9.0 和 cuDNN。
- 我已将 cuDNN 的 bin、include 和 lib 文件夹中的文件复制到 CUDA 的相应文件夹中。
- 我将 cuda 文件夹的路径从 windows 添加到环境 PATH 中
- 我将 CUDA 和 cuDNN 文件夹路径添加到 pycharm 中项目结构的 Content 根文件夹(可能没有帮助,但有人在某处提出了建议)
我是 tensorflow 的新手,我不知道接下来要做什么。任何帮助将不胜感激。
【问题讨论】:
-
看起来 protobuf 有问题。这可能会帮助你github.com/tensorflow/tensorboard/issues/1566
标签: python tensorflow