pycharm和tensorflow-gpu;找不到DLL

时间:2018-12-28 00:30:45

标签: python tensorflow

我试图在我的PC上运行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
  • 我在pycharm中将CUDA和cuDNN文件夹路径添加到了项目结构的Content根文件夹中(可能无济于事,但有人建议这样做)

我是tensorflow的新手,我不知道接下来要做什么。任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:0)

protobuf似乎是一个conda软件包。尝试使用

安装
conda install protobuf

pip install protobuf