Tensorflow import error: module 'imp' has no attribute 'find_module'
我正在尝试导入TensorFlow(我已安装在14.04 LTS和TensorFlow 0.8上),但它显示
1 2 3 4 5 6 7 8 9 10 11 12 13 | atributeError: module 'imp' has no attribute 'find_module' Traceback (most recent call last): File"<stdin>", line 1, in <module> File"/home/prayalankar/anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/\__init__.py", line 23, in <module> from tensorflow.python import * File"/home/prayalankar/anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/\__init__.py", line 45, in <module> from tensorflow.python import pywrap_tensorflow File"/home/prayalankar/anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <module> _pywrap_tensorflow = swig_import_helper() File"/home/prayalankar/anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow.py", line 18, in swig_import_helper fp, pathname, description = imp.find_module('_pywrap_tensorflow', [dirname(\__file__)]) AttributeError: module 'imp' has no attribute 'find_module' |
如何着手?
似乎我在home目录中有一个