ImportError: No module named platform
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ImportError: No module named platform相关的知识,希望对你有一定的参考价值。
centos7+tensorflow1.5>> >>> import tensorflow as tf
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "tensorflow/init.py", line 24, in <module>
from tensorflow.python import *
File "tensorflow/python/init.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "tensorflow/python/pywrap_tensorflow.py", line 25, in <module>
from tensorflow.python.platform import self_check
ImportError: No module named platform
在tensorflow下建了一个空的init.py,运行不可以,改变PATH和PYTHONPATH的值也不可以
最后发现换个目录执行就没问题了
以上是关于ImportError: No module named platform的主要内容,如果未能解决你的问题,请参考以下文章
ImportError : No module named graphics
python27 ImportError: No module named site
Python中ImportError: No module named request
ImportError: No module named win32api