【问题标题】:pycharm and tensorflow-gpu; DLL not foundpycharm 和 tensorflow-gpu;未找到 DLL
【发布时间】: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 的新手,我不知道接下来要做什么。任何帮助将不胜感激。

【问题讨论】:

标签: python tensorflow


【解决方案1】:

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

安装它
conda install protobuf

或者

pip install protobuf

【讨论】:

  • 我让它工作了!我将 protobuf 从 3.6.1 降级到 3.6.0,并且成功了
猜你喜欢
  • 1970-01-01
  • 2021-04-12
  • 1970-01-01
  • 2019-06-09
  • 1970-01-01
  • 2020-04-03
  • 2017-11-05
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多