【发布时间】:2018-05-30 16:48:42
【问题描述】:
我在 anaconda 环境中使用 tensorflow 1.8.0,尝试运行 python 文件时显示以下错误:
(tensorflow) C:\Users\Jose\Anaconda3>python.exe clasifica.py
C:\Users\Jose\Anaconda3\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
Traceback (most recent call last):
File "clasifica.py", line 4, in <module>
import tflearn
File "C:\Users\Jose\Anaconda3\lib\site-packages\tflearn\__init__.py", line 4, in <module>
from . import config
File "C:\Users\Jose\Anaconda3\lib\site-packages\tflearn\config.py", line 5, in <module>
from .variables import variable
File "C:\Users\Jose\Anaconda3\lib\site-packages\tflearn\variables.py", line 7, in <module>
from tensorflow.contrib.framework.python.ops import add_arg_scope as contrib_add_arg_scope
File "C:\Users\Jose\Anaconda3\lib\site-packages\tensorflow\contrib\__init__.py", line 34, in <module>
from tensorflow.contrib import data
File "C:\Users\Jose\Anaconda3\lib\site-packages\tensorflow\contrib\data\__init__.py", line 67, in <module>
from tensorflow.contrib.data.python.ops.error_ops import ignore_errors
File "C:\Users\Jose\Anaconda3\lib\site-packages\tensorflow\contrib\data\python\ops\error_ops.py", line 20, in <module>
from tensorflow.contrib.data.python.ops import contrib_op_loader # pylint: disable=unused-import
File "C:\Users\Jose\Anaconda3\lib\site-packages\tensorflow\contrib\data\python\ops\contrib_op_loader.py", line 24, in <module>
resource_loader.get_path_to_datafile("../../_dataset_ops.so"))
File "C:\Users\Jose\Anaconda3\lib\site-packages\tensorflow\contrib\util\loader.py", line 56, in load_op_library
ret = load_library.load_op_library(path)
File "C:\Users\Jose\Anaconda3\lib\site-packages\tensorflow\python\framework\load_library.py", line 56, in load_op_library
lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: C:\Users\Jose\Anaconda3\lib\site-packages\tensorflow\contrib\data\python\ops\..\..\_dataset_ops.so not found
我正在与:
Tensorflow 版本:1.8.0,
Anaconda 中的 Python 3.6.4,
视窗 10 专业版
【问题讨论】:
-
欢迎来到 SO。请阅读how to ask
标签: python tensorflow anaconda